mirror of
https://github.com/astaxie/beego.git
synced 2025-01-22 09:47:12 +00:00
astaxie
54b92e9599
context:add Bind function
// 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"}
beego
beego is a Go Framework inspired by tornado and sinatra.
It is a simple & powerful web framework.
More info beego.me
Features
- RESTful support
- MVC architecture
- Session support (store in memory, file, Redis or MySQL)
- Cache support (store in memory, Redis or Memcache)
- Global Config
- Intelligent routing
- Thread-safe map
- Friendly displaying of errors
- Useful template functions
Documentation
LICENSE
beego is licensed under the Apache Licence, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0.html).
[][koding] [koding]: https://koding.com/Teamwork?import=https://github.com/astaxie/beego/archive/master.zip&c=git1
Description
Languages
Go
99.6%
Shell
0.4%