beego mirror
Go to file
dan pittman 0e786fa4af
adds ability to reset params after a filter runs
When a filter is run _after_ the router completes, it's input params,
such as `":splat"` will have been overwritten by the filter's router pass.
This commit adds the ability to tell the router to revert to the previous input
params after running a filter.
2016-08-07 07:44:30 -07:00
.github update issue template 2016-03-23 17:05:40 +08:00
cache fix bee fix 2016-03-25 13:25:29 +08:00
config Fixed parese ini file with empty space line 2016-06-01 19:58:35 +08:00
context adds ability to reset params after a filter runs 2016-08-07 07:44:30 -07:00
grace fix the go vet for go tip 2016-01-29 13:11:11 +08:00
httplib close socket when http client request over 2016-04-22 13:54:55 +08:00
logs Merge pull request #2003 from GuyCheung/develop 2016-08-02 09:57:51 +08:00
migration bee fix 2016-03-25 10:56:15 +08:00
orm Merge pull request #1964 from qAison/master 2016-08-02 10:00:24 +08:00
plugins fix the misspell99 2016-03-11 12:14:18 +08:00
session Merge pull request #1953 from lcbluestorm/master 2016-05-20 22:53:23 +08:00
swagger upgrade swagger from 1.2 to 2.0 2016-04-11 11:56:43 +08:00
testing golint testing 2015-09-12 23:19:18 +08:00
toolbox gofmt the code 2016-04-29 10:28:10 +08:00
utils rand func modify 2016-04-08 14:24:23 +08:00
validation Implement Error interface for validation error 2016-05-05 19:26:03 +08:00
.gitignore update the gitignore 2015-08-31 11:58:11 +08:00
.travis.yml Removed external dependency 2016-07-27 17:42:28 +02:00
CONTRIBUTING.md add CONTRIBUTING.md 2016-01-13 22:02:36 +08:00
LICENSE update all files License 2014-05-17 02:26:50 +08:00
README.md Update README.md 2016-04-08 14:28:45 +08:00
admin.go list the config to map 2016-04-18 19:16:39 +08:00
admin_test.go go fmt 2016-06-01 19:57:08 +08:00
adminui.go beego task list update for task spec list and task run url error 2015-02-04 18:07:31 +08:00
app.go Print complete URL after running 2016-06-01 20:18:11 +08:00
beego.go Change set test mode way 2016-04-27 22:26:32 +08:00
config.go merge 2016-07-24 18:01:19 +08:00
config_test.go go fmt 2016-06-01 19:57:08 +08:00
controller.go Merge pull request #2030 from saturn4er/feature/add_template_prefix_field 2016-08-02 09:54:01 +08:00
controller_test.go refactor router 2015-12-16 23:11:03 +08:00
doc.go fix typo 2016-01-17 23:48:17 +08:00
error.go Sport Error exeception for outside 2016-06-01 21:30:04 +08:00
error_test.go golink: map range only key stlye 2016-03-27 15:07:51 +08:00
filter.go adds ability to reset params after a filter runs 2016-08-07 07:44:30 -07:00
filter_test.go change to logs 2016-03-25 10:31:48 +08:00
flash.go typo fixed 2016-01-15 14:07:37 +08:00
flash_test.go make golint happy 2015-09-08 21:41:38 +08:00
hooks.go 1. remove the invalid comments. 2016-04-21 09:57:44 +08:00
log.go remove from init method 2016-03-25 15:04:52 +08:00
mime.go make golint happy 2015-09-08 21:41:38 +08:00
namespace.go make router fast 2016-03-15 11:49:23 +08:00
namespace_test.go go fmt 2016-04-27 23:57:36 +08:00
parser.go Merge pull request #2032 from ShevYan/make-go-vet-pass 2016-07-14 10:38:05 +08:00
router.go adds ability to reset params after a filter runs 2016-08-07 07:44:30 -07:00
router_test.go adds ability to reset params after a filter runs 2016-08-07 07:44:30 -07:00
staticfile.go redirect should add query params 2016-07-26 19:54:10 +08:00
staticfile_test.go go fmt 2016-02-12 11:36:59 +08:00
template.go reflection 2016-07-28 11:56:55 +08:00
template_test.go add template read lock when dev mode 2016-03-04 12:00:43 +08:00
templatefunc.go Change meta to required, and refactor a bit to cover edge cases 2016-06-30 10:32:53 -07:00
templatefunc_test.go Change meta to required, and refactor a bit to cover edge cases 2016-06-30 10:32:53 -07:00
tree.go remove debug 2016-07-30 22:05:59 +08:00
tree_test.go update test 2016-07-30 23:14:29 +08:00

README.md

Beego

Build Status GoDoc

beego is used for rapid development of RESTful APIs, web apps and backend services in Go. It is inspired by Tornado, Sinatra and Flask. beego has some Go-specific features such as interfaces and struct embedding.

More info beego.me

##Quick Start ######Download and install

go get github.com/astaxie/beego

######Create file hello.go

package main

import "github.com/astaxie/beego"

func main(){
    beego.Run()
}

######Build and run

    go build hello.go
    ./hello

######Congratulations! You just built your first beego app. Open your browser and visit http://localhost:8080. Please see Documentation for more.

Features

  • RESTful support
  • MVC architecture
  • Modularity
  • Auto API documents
  • Annotation router
  • Namespace
  • Powerful development tools
  • Full stack for Web & API

Documentation

Community

LICENSE

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