PageRenderTime 16ms CodeModel.GetById 9ms app.highlight 3ms RepoModel.GetById 2ms app.codeStats 0ms

/app/controller/hello.go

http://github.com/sut-go/gon
Go | 23 lines | 12 code | 4 blank | 7 comment | 0 complexity | 354b8207aa908798a3fcfe89f4bf8c96 MD5 | raw file
 1package hello
 2
 3import . "framework/mv"
 4import "app/domain/user"
 5import "fmt"
 6
 7type HelloController struct {
 8    Params
 9    *user.UserService
10}
11
12func (c *HelloController) Index() Model {
13    fmt.Printf("id = %s\n", c.Params["id"])
14	return Model{"user": ""}
15	// book.Get(c.Params["id"])}
16
17	//
18	// /hello/index/doc1
19	// /:controller/:action/:id
20	//
21    // return book.findById(Params["id"])
22	//
23}