- 16 May, 2014 3 commits
-
-
orm: allow unexported fields on model structs
slene committed -
//design model beego.Get(router, beego.FilterFunc) beego.Post(router, beego.FilterFunc) beego.Put(router, beego.FilterFunc) beego.Head(router, beego.FilterFunc) beego.Options(router, beego.FilterFunc) beego.Delete(router, beego.FilterFunc) beego.Handler(router, http.Handler) //example beego.Get("/user", func(ctx *context.Context) { ctx.Output.Body([]byte("Get userlist")) }) beego.Post("/user", func(ctx *context.Context) { ctx.Output.Body([]byte("add userlist")) }) beego.Delete("/user/:id", func(ctx *context.Context) { ctx.Output.Body([]byte([]byte(ctx.Input.Param(":id"))) }) import ( "http" "github.com/gorilla/rpc" "github.com/gorilla/rpc/json" ) func init() { s := rpc.NewServer() s.RegisterCodec(json.NewCodec(), "application/json") s.RegisterService(new(HelloService), "") beego.Handler("/rpc", s) }astaxie committed -
astaxie committed
-
- 15 May, 2014 2 commits
-
-
[important] bug fixed
astaxie committed -
jessonchan committed
-
- 14 May, 2014 2 commits
-
-
refactor func
astaxie committed -
jessonchan committed
-
- 09 May, 2014 2 commits
- 08 May, 2014 2 commits
- 28 Apr, 2014 1 commit
-
-
astaxie committed
-
- 14 Apr, 2014 2 commits
- 12 Apr, 2014 1 commit
-
-
astaxie committed
-
- 11 Apr, 2014 1 commit
-
-
astaxie committed
-
- 10 Apr, 2014 3 commits
- 09 Apr, 2014 7 commits
-
-
// Bind data from request.Form[key] to dest // like /?id=123&isok=true&ft=1.2&ol[0]=1&ol[1]=2&ul[]=str&ul[]=array&user.Name= astaxie // var id int beegoInput.Bind(&id, "id") id ==123 // var isok bool beegoInput.Bind(&isok, "isok") id ==true // var ft float64 beegoInput.Bind(&ft, "ft") ft ==1.2 // ol := make([]int, 0, 2) beegoInput.Bind(&ol, "ol") ol ==[1 2] // ul := make([]string, 0, 2) beegoInput.Bind(&ul, "ul") ul ==[str array] // user struct{Name} beegoInput.Bind(&user, "user") user == {Name:"astaxie"}astaxie committed -
https://github.com/astaxie/beegoastaxie committed
-
astaxie committed
-
Make the Maxage Config of cookie session work
astaxie committed -
Fix/cache test
astaxie committed -
Lin Luxiang committed
-
Donald Zhan committed
-
- 08 Apr, 2014 3 commits
- 07 Apr, 2014 1 commit
-
-
astaxie committed
-
- 05 Apr, 2014 5 commits
- 04 Apr, 2014 5 commits