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 32ee728078
Merge pull request #3586 from astaxie/develop
5 月之前
.github update issue template 3 年之前
cache Incr和Decr应该改成排它锁,否则在并发的时候会出现非期望的结果值 7 月之前
config config/yaml: s/bytes.NewBuffer/bytes.NewReader/ 9 月之前
context fix concurrent map access problem on BeegoInput.data 6 月之前
grace spelling mistake of word "Header" 9 月之前
httplib TestToJson bug fixed 9 月之前
logs logger_test imported and not used: "bytes" 8 月之前
migration Beego skipping some migrations 6 月之前
orm Merge pull request #3689 from GeorgeXc/addStmt 5 月之前
plugins Update apiauth.go fixed infinite recursive call 8 月之前
session Merge pull request #3522 from saromanov/check-input-data 9 月之前
swagger Swagger: 1 年之前
testdata feat(Template): testing fs bindata 1 年之前
testing golint testing 4 年之前
toolbox fix race problem on toolbox/task 8 月之前
utils email的Attach和AttachFile 的参数检查逻辑有误。len(args) < 1 && len(args) > 2 改为 len(args) < 1 || len(args) > 2 5 月之前
validation add new test case for china mobile phone 11 月之前
vendor update vendor & module 1 年之前
.gitignore ignore .vscode folder 2 年之前
.travis.yml update travis 8 月之前
CONTRIBUTING.md add CONTRIBUTING.md 3 年之前
LICENSE update all files License 5 年之前
README.md Added link to ranking 1 年之前
admin.go better format 1 年之前
admin_test.go Add map shortcut and ServeFormatted method in output 1 年之前
adminui.go fix #1877 3 年之前
app.go move log function to log package 8 月之前
beego.go v1.12.0 5 月之前
config.go AutoCert 1 年之前
config_test.go Add map shortcut and ServeFormatted method in output 1 年之前
controller.go it's no need to override Trace method. 8 月之前
controller_test.go gofmt simplify 2 年之前
doc.go fix typo 3 年之前
error.go Make LogAccess public 9 月之前
error_test.go fix the gosimple 2 年之前
filter.go adds ability to reset params after a filter runs 3 年之前
filter_test.go change to logs 3 年之前
flash.go typo fixed 3 年之前
flash_test.go add go simple support 2 年之前
fs.go make staticcheck happy 10 月之前
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 月之前
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 月之前
hooks.go better format 1 年之前
log.go // Deprecated: use github.com/astaxie/beego/logs instead. 8 月之前
mime.go fix the typo 3 年之前
namespace.go make staticcheck happy 10 月之前
namespace_test.go add go simple support 2 年之前
parser.go make routers configurable for beego multi-instance in the same repo 7 月之前
policy.go golint 2 年之前
router.go router.go: add comment func LogAccess 5 月之前
router_test.go make staticcheck happy 10 月之前
staticfile.go fix / can use dynamic directory 1 年之前
staticfile_test.go Fix Unexpected EOF bug in staticfile 1 年之前
template.go Register .gohtml extension 9 月之前
template_test.go feat(Template): use interface http.FileSystem 1 年之前
templatefunc.go fix bugs of ParseForm about time in RFC3339 format 6 月之前
templatefunc_test.go fix: adding test for issue due to testing is not reflect changed 10 月之前
tree.go comment edit 2 年之前
tree_test.go fix routing bug for splat 2 年之前
unregroute_test.go fix golint comments 2 年之前

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.

Response time ranking: web-frameworks.

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