fix comments typo in beego package/
Showing
3 changed files
with
5 additions
and
5 deletions
| ... | @@ -241,7 +241,7 @@ func (c *Controller) ServeJson(encoding ...bool) { | ... | @@ -241,7 +241,7 @@ func (c *Controller) ServeJson(encoding ...bool) { |
| 241 | c.Ctx.Output.Json(c.Data["json"], hasIndent, hasencoding) | 241 | c.Ctx.Output.Json(c.Data["json"], hasIndent, hasencoding) |
| 242 | } | 242 | } |
| 243 | 243 | ||
| 244 | // ServeJson sends a jsonp response. | 244 | // ServeJsonp sends a jsonp response. |
| 245 | func (c *Controller) ServeJsonp() { | 245 | func (c *Controller) ServeJsonp() { |
| 246 | var hasIndent bool | 246 | var hasIndent bool |
| 247 | if RunMode == "prod" { | 247 | if RunMode == "prod" { |
| ... | @@ -252,7 +252,7 @@ func (c *Controller) ServeJsonp() { | ... | @@ -252,7 +252,7 @@ func (c *Controller) ServeJsonp() { |
| 252 | c.Ctx.Output.Jsonp(c.Data["jsonp"], hasIndent) | 252 | c.Ctx.Output.Jsonp(c.Data["jsonp"], hasIndent) |
| 253 | } | 253 | } |
| 254 | 254 | ||
| 255 | // ServeJson sends xml response. | 255 | // ServeXml sends xml response. |
| 256 | func (c *Controller) ServeXml() { | 256 | func (c *Controller) ServeXml() { |
| 257 | var hasIndent bool | 257 | var hasIndent bool |
| 258 | if RunMode == "prod" { | 258 | if RunMode == "prod" { | ... | ... |
| ... | @@ -17,7 +17,7 @@ import ( | ... | @@ -17,7 +17,7 @@ import ( |
| 17 | 17 | ||
| 18 | var ( | 18 | var ( |
| 19 | beegoTplFuncMap template.FuncMap | 19 | beegoTplFuncMap template.FuncMap |
| 20 | // beego template caching map ans supported template file extensions. | 20 | // beego template caching map and supported template file extensions. |
| 21 | BeeTemplates map[string]*template.Template | 21 | BeeTemplates map[string]*template.Template |
| 22 | BeeTemplateExt []string | 22 | BeeTemplateExt []string |
| 23 | ) | 23 | ) |
| ... | @@ -89,7 +89,7 @@ func (self *templatefile) visit(paths string, f os.FileInfo, err error) error { | ... | @@ -89,7 +89,7 @@ func (self *templatefile) visit(paths string, f os.FileInfo, err error) error { |
| 89 | return nil | 89 | return nil |
| 90 | } | 90 | } |
| 91 | 91 | ||
| 92 | // return this path has supported template extension of beego or not. | 92 | // return this path contains supported template extension of beego or not. |
| 93 | func HasTemplateExt(paths string) bool { | 93 | func HasTemplateExt(paths string) bool { |
| 94 | for _, v := range BeeTemplateExt { | 94 | for _, v := range BeeTemplateExt { |
| 95 | if strings.HasSuffix(paths, "."+v) { | 95 | if strings.HasSuffix(paths, "."+v) { | ... | ... |
| ... | @@ -203,7 +203,7 @@ func AssetsJs(src string) template.HTML { | ... | @@ -203,7 +203,7 @@ func AssetsJs(src string) template.HTML { |
| 203 | return template.HTML(text) | 203 | return template.HTML(text) |
| 204 | } | 204 | } |
| 205 | 205 | ||
| 206 | // returns stylesheet link tag with str string. | 206 | // returns stylesheet link tag with src string. |
| 207 | func AssetsCss(src string) template.HTML { | 207 | func AssetsCss(src string) template.HTML { |
| 208 | text := string(src) | 208 | text := string(src) |
| 209 | 209 | ... | ... |
-
Please register or sign in to post a comment