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 de7ce2f9b0 v1.12.0 4 months ago
.github update issue template 3 years ago
cache Incr和Decr应该改成排它锁,否则在并发的时候会出现非期望的结果值 6 months ago
config config/yaml: s/bytes.NewBuffer/bytes.NewReader/ 9 months ago
context fix concurrent map access problem on 5 months ago
grace spelling mistake of word "Header" 8 months ago
httplib TestToJson bug fixed 8 months ago
logs logger_test imported and not used: "bytes" 8 months ago
migration Beego skipping some migrations 6 months ago
orm Merge pull request #3689 from GeorgeXc/addStmt 4 months ago
plugins Update apiauth.go fixed infinite recursive call 8 months ago
session Merge pull request #3522 from saromanov/check-input-data 9 months 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 7 months ago
utils email的Attach和AttachFile 的参数检查逻辑有误。len(args) < 1 && len(args) > 2 改为 len(args) < 1 || len(args) > 2 4 months ago
validation add new test case for china mobile phone 10 months ago
vendor update vendor & module 11 months ago
.gitignore ignore .vscode folder 2 years ago
.travis.yml update travis 7 months ago add 3 years ago
LICENSE update all files License 5 years ago Added link to ranking 1 year 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 8 months ago
beego.go v1.12.0 4 months 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. 7 months ago
controller_test.go gofmt simplify 2 years ago
doc.go fix typo 3 years ago
error.go Make LogAccess public 9 months 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 3 years ago
flash_test.go add go simple support 2 years ago
fs.go make staticcheck happy 10 months ago
go.mod fix: when parse post form it didnt parse fields which have same name but the first index is empty but another is not 10 months ago
go.sum fix: when parse post form it didnt parse fields which have same name but the first index is empty but another is not 10 months ago
hooks.go better format 1 year ago
log.go // Deprecated: use instead. 7 months ago
mime.go fix the typo 3 years ago
namespace.go make staticcheck happy 10 months ago
namespace_test.go add go simple support 2 years ago
parser.go make routers configurable for beego multi-instance in the same repo 7 months ago
policy.go golint 2 years ago
router.go router.go: add comment func LogAccess 5 months ago
router_test.go make staticcheck happy 10 months 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 9 months ago
template_test.go feat(Template): use interface http.FileSystem 1 year ago
templatefunc.go fix bugs of ParseForm about time in RFC3339 format 5 months ago
templatefunc_test.go fix: adding test for issue due to testing is not reflect changed 10 months 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

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.

Response time ranking: web-frameworks.

More info at

Quick Start

Download and install

go get

Create file hello.go

package main

import ""

func main(){

Build and run

go build hello.go

Go to http://localhost:8080

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

Please see Documentation for more.


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




beego source code is licensed under the Apache Licence, Version 2.0 (