1
0
mirror of https://github.com/kataras/iris.git synced 2026-01-06 03:27:27 +00:00

formatting

Former-commit-id: 037081db5d6d4434e873ca8b75334ee43e046b6a
This commit is contained in:
Gerasimos (Makis) Maropoulos
2019-08-17 10:06:20 +03:00
parent 00967408dc
commit 07046ab978
112 changed files with 477 additions and 517 deletions

View File

@@ -14,14 +14,13 @@ import (
// Read more at https://github.com/shiyanhui/hero/hero
func main() {
app := iris.New()
app.Get("/users", func(ctx iris.Context) {
ctx.Gzip(true)
ctx.ContentType("text/html")
var userList = []string{
userList := []string{
"Alice",
"Bob",
"Tom",

View File

@@ -37,5 +37,4 @@ func UserList(userList []string, buffer *bytes.Buffer) {
</body>
</html>
`)
}

View File

@@ -40,5 +40,4 @@ func UserListToWriter(userList []string, w io.Writer) (int, error) {
</html>
`)
return w.Write(_buffer.Bytes())
}