Explorar o código

verify Beego json fix

Mike Smith %!s(int64=11) %!d(string=hai) anos
pai
achega
34a1b17ce0
Modificáronse 1 ficheiros con 2 adicións e 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()
 }