浏览代码

verify Beego json fix

Mike Smith 11 年之前
父节点
当前提交
34a1b17ce0
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      beego/src/hello/hello.go

+ 2 - 2
beego/src/hello/hello.go

@@ -6,7 +6,7 @@ import (
 )
 )
 
 
 type MessageStruct struct {
 type MessageStruct struct {
-	Message string
+	message string
 }
 }
 
 
 type JsonController struct {
 type JsonController struct {
@@ -14,7 +14,7 @@ type JsonController struct {
 }
 }
 
 
 func (this *JsonController) Get() {
 func (this *JsonController) Get() {
-	m := MessageStruct{"Hello, world"}
+	m := MessageStruct{"Hello, World!"}
 	this.Data["json"] = &m
 	this.Data["json"] = &m
 	this.ServeJson()
 	this.ServeJson()
 }
 }