harbor/src/vendor/github.com/beego/beego/v2
Wang Yan 18a3373725
bump beego (#17801)
* bump beego

upgrade beego version from v1.10.12 to v2.0.5

1, beego v2 vserver/web refactor
2, beego v2 context refactor
3, beego v2 session refactor
4, beego v2 cache refactor
5, beego v2 orm refactor

Signed-off-by: MinerYang <yminer@vmware.com>
2022-11-24 18:07:42 +08:00
..
client bump beego (#17801) 2022-11-24 18:07:42 +08:00
core bump beego (#17801) 2022-11-24 18:07:42 +08:00
server/web bump beego (#17801) 2022-11-24 18:07:42 +08:00
.deepsource.toml bump beego (#17801) 2022-11-24 18:07:42 +08:00
.gitignore bump beego (#17801) 2022-11-24 18:07:42 +08:00
CHANGELOG.md bump beego (#17801) 2022-11-24 18:07:42 +08:00
CONTRIBUTING.md bump beego (#17801) 2022-11-24 18:07:42 +08:00
ERROR_SPECIFICATION.md bump beego (#17801) 2022-11-24 18:07:42 +08:00
LICENSE bump beego (#17801) 2022-11-24 18:07:42 +08:00
Makefile bump beego (#17801) 2022-11-24 18:07:42 +08:00
README.md bump beego (#17801) 2022-11-24 18:07:42 +08:00
build_info.go bump beego (#17801) 2022-11-24 18:07:42 +08:00
doc.go bump beego (#17801) 2022-11-24 18:07:42 +08:00
sonar-project.properties bump beego (#17801) 2022-11-24 18:07:42 +08:00

README.md

Beego Test Go Report Card Go Reference

Beego is used for rapid development of enterprise application in Go, including RESTful APIs, web apps and backend services.

It is inspired by Tornado, Sinatra and Flask. beego has some Go-specific features such as interfaces and struct embedding.

architecture

Beego is composed of four parts:

  1. Base modules: including log module, config module, governor module;
  2. Task: is used for running timed tasks or periodic tasks;
  3. Client: including ORM module, httplib module, cache module;
  4. Server: including web module. We will support gRPC in the future;

Please use RELEASE version, or master branch which contains the latest bug fix

Quick Start

Official website 中文新版文档网站

Example

If you could not open official website, go to beedoc

Web Application

Http Request

Create hello directory, cd hello directory

mkdir hello
cd hello

Init module

go mod init

Download and install

go get github.com/beego/beego/v2@latest
package main

import "github.com/beego/beego/v2/server/web"

func main() {
	web.Run()
}

Build and run

go build hello.go
./hello

Go to http://localhost:8080

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

Features

Modules

Community

License

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