From d451335aa2167e79a077cdcd0c9448839a6d15b8 Mon Sep 17 00:00:00 2001 From: "Gerasimos (Makis) Maropoulos" Date: Sun, 20 Jan 2019 00:00:54 +0200 Subject: [PATCH] gofmt Former-commit-id: 75992b3aeae2228a7a7f0e698ce78b2f323cc33a --- _examples/view/template_html_5/main.go | 2 +- _examples/websocket/native-messages/main.go | 4 ++-- cache/entry/entry.go | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/_examples/view/template_html_5/main.go b/_examples/view/template_html_5/main.go index 9fcc7fdb..0a7a44ab 100644 --- a/_examples/view/template_html_5/main.go +++ b/_examples/view/template_html_5/main.go @@ -11,7 +11,7 @@ func main() { // TIP: append .Reload(true) to reload the templates on each request. app.Get("/home", func(ctx iris.Context) { - ctx.ViewData("title", "Home page"); + ctx.ViewData("title", "Home page") ctx.View("home.html") // Note that: you can pass "layout" : "otherLayout.html" to bypass the config's Layout property // or view.NoLayout to disable layout on this render action. diff --git a/_examples/websocket/native-messages/main.go b/_examples/websocket/native-messages/main.go index 254cb2a6..33de1d56 100644 --- a/_examples/websocket/native-messages/main.go +++ b/_examples/websocket/native-messages/main.go @@ -27,8 +27,8 @@ func main() { app.RegisterView(iris.HTML("./templates", ".html")) // select the html engine to serve templates ws := websocket.New(websocket.Config{ - // to enable binary messages (useful for protobuf): - // BinaryMessages: true, + // to enable binary messages (useful for protobuf): + // BinaryMessages: true, }) // register the server on an endpoint. diff --git a/cache/entry/entry.go b/cache/entry/entry.go index 7beab739..f875323c 100644 --- a/cache/entry/entry.go +++ b/cache/entry/entry.go @@ -115,7 +115,7 @@ func (e *Entry) Reset(statusCode int, headers map[string][]string, e.response.headers = newHeaders } - e.response.body = make([]byte,len(body)) + e.response.body = make([]byte, len(body)) copy(e.response.body, body) // check if a given life changer provided // and if it does then execute the change life time