1
0
mirror of https://github.com/astaxie/beego.git synced 2024-06-26 00:14:14 +00:00
beego mirror
Go to file
astaxie 9d84969bf6 fix #153
已经支持了任意定义变量的路由形式,具体的使用请参考:

func TestManyRoute(t *testing.T) {

	r, _ := http.NewRequest("GET", "/beego32-12.html", nil)
	w := httptest.NewRecorder()

	handler := NewControllerRegistor()
	handler.Add("/beego:id([0-9]+)-:page([0-9]+).html", &TestController{})
	handler.ServeHTTP(w, r)

	id := r.URL.Query().Get(":id")
	page := r.URL.Query().Get(":page")

	if id != "32" {
		t.Errorf("url param set to [%s]; want [%s]", id, "32")
	}
	if page != "12" {
		t.Errorf("url param set to [%s]; want [%s]", page, "12")
	}
}
2013-09-13 11:22:14 +08:00
cache fix #132 2013-08-09 22:19:05 +08:00
config fix yaml 2013-08-22 13:46:22 +08:00
context add iswebsocket method 2013-09-10 17:02:56 +08:00
example add chat example 2013-09-10 18:38:40 +08:00
httplib move httplib from beego to beego/httplib safemap support get all items 2013-08-06 16:13:45 +08:00
logs add logs readme 2013-09-10 18:44:29 +08:00
middleware update middleware & beego's error 2013-09-11 17:00:39 +08:00
orm orm.Read support specify condition fields, orm.Update and QuerySeter All/One support omit fields. 2013-09-12 19:04:39 +08:00
session fix #138 2013-08-09 23:41:03 +08:00
testing change to asta 2013-08-22 14:27:23 +08:00
validation validation add more info to ValidationError, and put all messages tmpl to a map 2013-09-10 21:51:25 +08:00
.gitignore add git ignore file 2013-06-01 13:31:14 +08:00
app.go go on modify api 2013-09-10 00:17:49 +08:00
beego.go update middleware & beego's error 2013-09-11 17:00:39 +08:00
config.go fix config bug 2013-09-10 14:47:48 +08:00
controller.go support nest template 2013-09-12 17:20:32 +08:00
filter.go change a log about new version 2013-09-10 00:00:18 +08:00
flash.go maybe can't delete cookie error in same browser 2013-08-21 11:31:32 +08:00
log.go compatiable for old version 2013-09-09 16:43:48 -04:00
README.md update doc's link 2013-08-28 17:09:01 +08:00
reload.go fix close err 2013-06-26 23:34:32 +08:00
router_test.go fix #153 2013-09-13 11:22:14 +08:00
router.go fix #153 2013-09-13 11:22:14 +08:00
safemap_test.go add safemap and test 2013-03-28 15:25:49 +08:00
safemap.go move httplib from beego to beego/httplib safemap support get all items 2013-08-06 16:13:45 +08:00
template_test.go update template's testcase 2013-09-12 17:32:11 +08:00
template.go update tempalte's regexp 2013-09-12 18:20:29 +08:00
utils_test.go Support custom label for renderform 2013-08-12 06:54:36 +08:00
utils.go support template 2013-09-12 15:24:08 +08:00

beego

Build Status

beego is a Go Framework which is inspired from tornado and sinatra.

It is a simply & 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

English

API

中文文档

LICENSE

beego is licensed under the Apache Licence, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0.html).

Use case