beego mirror
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
astaxie 0cd80525e7 Merge branch 'develop' 1 week ago
.github update issue template 3 years ago
cache Incr和Decr应该改成排它锁,否则在并发的时候会出现非期望的结果值 9 months ago
config config/yaml: s/bytes.NewBuffer/bytes.NewReader/ 1 year ago
context update hash algorithm for signing the cookie for xsrf token 2 weeks ago
grace spelling mistake of word "Header" 11 months ago
httplib httplib:fixes network request failed to create an invalid file and automatically created file directory 1 month ago
logs logger_test imported and not used: "bytes" 11 months ago
migration Beego skipping some migrations 9 months ago
orm Update cmd_utils.go 2 months ago
plugins Update apiauth.go fixed infinite recursive call 11 months ago
session Merge pull request #3868 from holtyuzhuyanbo/fix_session_destory 1 week ago
swagger Swagger: 1 year ago
testdata feat(Template): testing fs bindata 1 year ago
testing golint testing 4 years ago
toolbox fix race problem on toolbox/task 10 months ago
utils leak opened file 4 months ago
validation 验证调整,增加label, xx不能为空 1 month ago
vendor update vendor & module 1 year ago
.gitignore ignore .vscode folder 3 years ago
.travis.yml update version 1.13 5 months ago
CONTRIBUTING.md add CONTRIBUTING.md 4 years ago
LICENSE update all files License 5 years ago
README.md Update README.md 4 months ago
admin.go better format 1 year ago
admin_test.go Add map shortcut and ServeFormatted method in output 1 year ago
adminui.go fix #1877 3 years ago
app.go move log function to log package 11 months ago
beego.go version 1.12.1 1 week ago
config.go AutoCert 1 year ago
config_test.go Add map shortcut and ServeFormatted method in output 1 year ago
controller.go it's no need to override Trace method. 10 months ago
controller_test.go gofmt simplify 2 years ago
doc.go fix typo 4 years ago
error.go Make LogAccess public 1 year ago
error_test.go fix the gosimple 2 years ago
filter.go adds ability to reset params after a filter runs 3 years ago
filter_test.go change to logs 3 years ago
flash.go typo fixed 4 years ago
flash_test.go add go simple support 2 years ago
fs.go make staticcheck happy 1 year ago
go.mod 验证调整,增加label, xx不能为空 1 month ago
go.sum 验证调整,增加label, xx不能为空 1 month ago
hooks.go better format 1 year ago
log.go // Deprecated: use github.com/astaxie/beego/logs instead. 10 months ago
mime.go fix the typo 3 years ago
namespace.go make staticcheck happy 1 year ago
namespace_test.go add go simple support 2 years ago
parser.go make routers configurable for beego multi-instance in the same repo 10 months ago
policy.go golint 2 years ago
router.go Send the request from context rather than the original one to handlers 1 month ago
router_test.go make staticcheck happy 1 year ago
staticfile.go fix / can use dynamic directory 1 year ago
staticfile_test.go Fix Unexpected EOF bug in staticfile 1 year ago
template.go Register .gohtml extension 1 year ago
template_test.go feat(Template): use interface http.FileSystem 1 year ago
templatefunc.go fix bugs of ParseForm about time in RFC3339 format 8 months ago
templatefunc_test.go fix: adding test for issue due to testing is not reflect changed 1 year ago
tree.go comment edit 2 years ago
tree_test.go fix routing bug for splat 2 years ago
unregroute_test.go fix golint comments 2 years ago

README.md

Beego Build Status GoDoc Foundation Go Report Card

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 at 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

Go to http://localhost:8080

Congratulations! You've just built your first beego app.

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).