Browse Source

verify Fixed a bug with beego that I created

Mike Smith 11 years ago
parent
commit
e2e6a75123
1 changed files with 1 additions and 1 deletions
  1. 1 1
      beego/src/hello/hello.go

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

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