From 453e4e97dc8daa804f1d94face4a0aafc2c99ad6 Mon Sep 17 00:00:00 2001 From: thinkerou Date: Wed, 12 Sep 2018 21:12:24 +0800 Subject: [PATCH] fix fmt result --- render/html.go | 8 ++++---- render/json.go | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/render/html.go b/render/html.go index 94e611c4..4d3d5812 100644 --- a/render/html.go +++ b/render/html.go @@ -12,14 +12,14 @@ import ( // Delims represents a set of Left and Right delimiters for HTML template rendering. type Delims struct { // Left delimiter, defaults to {{. - Left string + Left string // Right delimiter, defaults to }}. Right string } -// HTMLRender interface is to be implemented by HTMLProduction and HTMLDebug. +// HTMLRender interface is to be implemented by HTMLProduction and HTMLDebug. type HTMLRender interface { - // Instance returns an HTML instance. + // Instance returns an HTML instance. Instance(string, interface{}) Render } @@ -29,7 +29,7 @@ type HTMLProduction struct { Delims Delims } -// HTMLDebug contains template delims and pattern and function with file list. +// HTMLDebug contains template delims and pattern and function with file list. type HTMLDebug struct { Files []string Glob string diff --git a/render/json.go b/render/json.go index 923e1400..32d0fc42 100644 --- a/render/json.go +++ b/render/json.go @@ -102,7 +102,7 @@ func (r SecureJSON) Render(w http.ResponseWriter) error { return nil } -// WriteContentType (SecureJSON) writes JSON ContentType. +// WriteContentType (SecureJSON) writes JSON ContentType. func (r SecureJSON) WriteContentType(w http.ResponseWriter) { writeContentType(w, jsonContentType) }