From 24885c28f2ddd66e06e50931d95ed1fe9f9f8d21 Mon Sep 17 00:00:00 2001 From: astaxie Date: Fri, 9 Nov 2018 17:54:20 +0800 Subject: [PATCH] fix the comments update --- beego.go | 2 +- controller.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/beego.go b/beego.go index 78936b4f..9e12fcb5 100644 --- a/beego.go +++ b/beego.go @@ -31,7 +31,7 @@ const ( PROD = "prod" ) -// Map shortcut +// M is Map shortcut type M map[string]interface{} // Hook function to run diff --git a/controller.go b/controller.go index 22e9a37b..4b8f9807 100644 --- a/controller.go +++ b/controller.go @@ -296,7 +296,7 @@ func (c *Controller) Redirect(url string, code int) { c.Ctx.Redirect(code, url) } -// Set the data depending on the accepted +// SetData set the data depending on the accepted func (c *Controller) SetData(data interface{}) { accept := c.Ctx.Input.Header("Accept") switch accept { @@ -370,7 +370,7 @@ func (c *Controller) ServeXML() { c.Ctx.Output.XML(c.Data["xml"], hasIndent) } -// ServeXML sends xml response. +// ServeYAML sends yaml response. func (c *Controller) ServeYAML() { c.Ctx.Output.YAML(c.Data["yaml"]) }