beego mirror
Go to file
Ming Deng 3b6d634f55
Merge pull request #4 from flycash/fix-bug-1.x
Fix BUG: /abc.html/aaa match /abc/aaa
2021-01-25 23:58:18 +08:00
.github update issue template 2016-03-23 17:05:40 +08:00
cache make stmt cache smaller 2020-10-10 21:35:58 +08:00
config make stmt cache smaller 2020-10-10 21:35:58 +08:00
context make stmt cache smaller 2020-10-10 21:35:58 +08:00
grace Merge pull request #3739 from nuczzz/develop 2020-06-23 00:10:53 +08:00
httplib Fix typo 2020-10-06 18:20:06 +08:00
logs make stmt cache smaller 2020-10-10 21:35:58 +08:00
metric Remove duration from prometheus label 2020-12-26 21:54:57 +08:00
migration Beego skipping some migrations 2019-05-17 16:19:26 +05:30
orm make stmt cache smaller 2020-10-10 21:35:58 +08:00
plugins make stmt cache smaller 2020-10-10 21:35:58 +08:00
scripts Add build info for prometheus 2020-06-25 17:44:40 +08:00
session Expose error from SessionRegenerateID 2020-11-25 21:13:04 +08:00
swagger Swagger: 2018-03-10 17:15:24 +08:00
testdata make stmt cache smaller 2020-10-10 21:35:58 +08:00
testing golint testing 2015-09-12 23:19:18 +08:00
toolbox Move many PR's change here since the original authors are responseless 2020-06-23 23:14:51 +08:00
utils leak opened file 2019-09-27 19:27:44 +08:00
validation make stmt cache smaller 2020-10-10 21:35:58 +08:00
.gitignore ignore .vscode folder 2016-12-29 22:30:56 +01:00
.travis.yml Fix ledis 2020-06-06 19:21:57 +08: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 2020-07-10 09:58:06 +08:00
admin.go added test for buildingHealthCheckResponse 2020-07-07 16:28:16 +01:00
admin_test.go Fix typo 2020-10-06 18:20:06 +08:00
adminui.go fix #1877 2016-09-13 22:43:40 +08:00
app.go 移除多余的条件判断 2020-07-30 14:48:46 +08:00
beego.go Upgrade version 2020-11-03 22:21:32 +08:00
build_info.go make stmt cache smaller 2020-10-10 21:35:58 +08:00
config.go session: adds CookieSameSite config to hooks.go#registerSession 2020-10-05 11:39:20 -03:00
config_test.go static file module:make cache file size and cache file numbers configurable 2020-06-02 18:22:47 +08:00
controller.go Expose error from SessionRegenerateID 2020-11-25 21:13:04 +08:00
controller_test.go make stmt cache smaller 2020-10-10 21:35:58 +08:00
doc.go fix typo 2016-01-17 23:48:17 +08:00
error.go refactor: log error when payload too large 2020-07-09 09:45:40 +08:00
error_test.go fix the gosimple 2017-07-19 00:37:42 +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 add go simple support 2017-03-17 20:22:20 +02:00
fs.go make staticcheck happy 2019-01-22 19:09:57 +08:00
go.mod fix #3776 2020-08-25 23:36:15 +08:00
go.sum fix #3776 2020-08-25 23:36:15 +08:00
hooks.go session: adds CookieSameSite config to hooks.go#registerSession 2020-10-05 11:39:20 -03:00
log.go // Deprecated: use github.com/astaxie/beego/logs instead. 2019-04-03 14:13:38 +08:00
mime.go fix the typo 2016-08-17 22:56:21 +08:00
namespace.go make staticcheck happy 2019-01-22 19:09:57 +08:00
namespace_test.go add go simple support 2017-03-17 20:22:20 +02:00
parser.go Using commentRouter.go as generated file name 2020-12-22 21:29:23 +08:00
policy.go golint 2017-04-29 09:13:28 +08:00
router.go Merge pull request #4058 from a631807682/fix/issues/4054 2020-07-09 16:41:11 +08:00
router_test.go refactor: log error when payload too large 2020-07-09 09:45:40 +08:00
staticfile.go make stmt cache smaller 2020-10-10 21:35:58 +08:00
staticfile_test.go add cache-hit test example 2020-05-09 10:44:37 +08:00
template.go Register .gohtml extension 2019-02-23 22:49:32 +01:00
template_test.go make stmt cache smaller 2020-10-10 21:35:58 +08:00
templatefunc.go make stmt cache smaller 2020-10-10 21:35:58 +08:00
templatefunc_test.go fix: adding test for issue due to testing is not reflect changed 2019-01-25 09:04:01 +07:00
test.sh Add docker-compose to support running test 2020-07-04 13:42:20 +00:00
test_docker_compose.yaml Add docker-compose to support running test 2020-07-04 13:42:20 +00:00
tree.go Fix BUG: /abc.html/aaa match /abc/aaa 2021-01-25 23:56:52 +08:00
tree_test.go fix routing bug for splat 2017-03-10 09:28:25 +08:00
unregroute_test.go fix golint comments 2017-11-25 19:18:37 +02:00

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

Create hello directory, cd hello directory

mkdir hello
cd hello

Init module

go mod init

Download and install

go get github.com/astaxie/beego
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.
beego-example

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