We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents fa3d498 + 214903e commit a5a0b79Copy full SHA for a5a0b79
README.md
@@ -63,18 +63,18 @@ func main() {
63
th.RegisterRoute(func(route *think.Route) {
64
65
route.Get("/", func(req *think.Req) *think.Res {
66
- return thinkgo.Text("Hello ThinkGo !")
+ return think.Text("Hello ThinkGo !")
67
})
68
69
route.Get("/ping", func(req *think.Req) *think.Res {
70
- return thinkgo.Json(map[string]string{
+ return think.Json(map[string]string{
71
"message": "pong",
72
73
74
75
// Dependency injection
76
route.Get("/user/{name}", func(req *think.Req, name string) *think.Res {
77
- return thinkgo.Text(fmt.Sprintf("Hello %s !", name))
+ return think.Text(fmt.Sprintf("Hello %s !", name))
78
79
80
// listen and serve on 0.0.0.0:9011
0 commit comments