mirror of
https://github.com/astaxie/beego.git
synced 2024-11-25 00:50:54 +00:00
fix comments typo in beego package/
This commit is contained in:
parent
8b0929b4bc
commit
6cb3f588c7
@ -241,7 +241,7 @@ func (c *Controller) ServeJson(encoding ...bool) {
|
||||
c.Ctx.Output.Json(c.Data["json"], hasIndent, hasencoding)
|
||||
}
|
||||
|
||||
// ServeJson sends a jsonp response.
|
||||
// ServeJsonp sends a jsonp response.
|
||||
func (c *Controller) ServeJsonp() {
|
||||
var hasIndent bool
|
||||
if RunMode == "prod" {
|
||||
@ -252,7 +252,7 @@ func (c *Controller) ServeJsonp() {
|
||||
c.Ctx.Output.Jsonp(c.Data["jsonp"], hasIndent)
|
||||
}
|
||||
|
||||
// ServeJson sends xml response.
|
||||
// ServeXml sends xml response.
|
||||
func (c *Controller) ServeXml() {
|
||||
var hasIndent bool
|
||||
if RunMode == "prod" {
|
||||
|
@ -17,7 +17,7 @@ import (
|
||||
|
||||
var (
|
||||
beegoTplFuncMap template.FuncMap
|
||||
// beego template caching map ans supported template file extensions.
|
||||
// beego template caching map and supported template file extensions.
|
||||
BeeTemplates map[string]*template.Template
|
||||
BeeTemplateExt []string
|
||||
)
|
||||
@ -89,7 +89,7 @@ func (self *templatefile) visit(paths string, f os.FileInfo, err error) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
// return this path has supported template extension of beego or not.
|
||||
// return this path contains supported template extension of beego or not.
|
||||
func HasTemplateExt(paths string) bool {
|
||||
for _, v := range BeeTemplateExt {
|
||||
if strings.HasSuffix(paths, "."+v) {
|
||||
|
@ -203,7 +203,7 @@ func AssetsJs(src string) template.HTML {
|
||||
return template.HTML(text)
|
||||
}
|
||||
|
||||
// returns stylesheet link tag with str string.
|
||||
// returns stylesheet link tag with src string.
|
||||
func AssetsCss(src string) template.HTML {
|
||||
text := string(src)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user