Skip to content

Commit a5a0b79

Browse files
authored
Merge pull request #10 from javauser2012/patch-1
Update README.md
2 parents fa3d498 + 214903e commit a5a0b79

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,18 +63,18 @@ func main() {
6363
th.RegisterRoute(func(route *think.Route) {
6464

6565
route.Get("/", func(req *think.Req) *think.Res {
66-
return thinkgo.Text("Hello ThinkGo !")
66+
return think.Text("Hello ThinkGo !")
6767
})
6868

6969
route.Get("/ping", func(req *think.Req) *think.Res {
70-
return thinkgo.Json(map[string]string{
70+
return think.Json(map[string]string{
7171
"message": "pong",
7272
})
7373
})
7474

7575
// Dependency injection
7676
route.Get("/user/{name}", func(req *think.Req, name string) *think.Res {
77-
return thinkgo.Text(fmt.Sprintf("Hello %s !", name))
77+
return think.Text(fmt.Sprintf("Hello %s !", name))
7878
})
7979
})
8080
// listen and serve on 0.0.0.0:9011

0 commit comments

Comments
 (0)