Explorar el Código

verify Beego json fix

Mike Smith hace 11 años
padre
commit
34a1b17ce0
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      beego/src/hello/hello.go

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

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