Commit 24885c28 authored by astaxie's avatar astaxie

fix the comments update

parent 5ea04bdf
...@@ -31,7 +31,7 @@ const ( ...@@ -31,7 +31,7 @@ const (
PROD = "prod" PROD = "prod"
) )
// Map shortcut // M is Map shortcut
type M map[string]interface{} type M map[string]interface{}
// Hook function to run // Hook function to run
......
...@@ -296,7 +296,7 @@ func (c *Controller) Redirect(url string, code int) { ...@@ -296,7 +296,7 @@ func (c *Controller) Redirect(url string, code int) {
c.Ctx.Redirect(code, url) 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{}) { func (c *Controller) SetData(data interface{}) {
accept := c.Ctx.Input.Header("Accept") accept := c.Ctx.Input.Header("Accept")
switch accept { switch accept {
...@@ -370,7 +370,7 @@ func (c *Controller) ServeXML() { ...@@ -370,7 +370,7 @@ func (c *Controller) ServeXML() {
c.Ctx.Output.XML(c.Data["xml"], hasIndent) c.Ctx.Output.XML(c.Data["xml"], hasIndent)
} }
// ServeXML sends xml response. // ServeYAML sends yaml response.
func (c *Controller) ServeYAML() { func (c *Controller) ServeYAML() {
c.Ctx.Output.YAML(c.Data["yaml"]) c.Ctx.Output.YAML(c.Data["yaml"])
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment