Beego Base
Beego
Create hello
directory, cd hello
directory
1
2
mkdir hello
cd hello
Init module
1
go mod init
Download and install
1
go get github.com/beego/beego/v2@latest
Create file hello.go
1
2
3
4
5
6
7
8
9
```go
package main
import "github.com/beego/beego/v2/server/web"
func main() {
web.Run()
}
```
Build and run
1
2
go build hello.go
./hello
Go to http://localhost:8080
Congratulations! You’ve just built your first beego app.
Features
- RESTful support
- MVC architecture
- Modularity
- Auto API documents
- Annotation router
- Namespace
- Powerful development tools
- Full stack for Web & API
Modules
Community
- Welcome to join us in Slack: https://beego.slack.com invite,
- QQ Group ID:523992905
- Contribution Guide.
License
beego source code is licensed under the Apache Licence, Version 2.0 (https://www.apache.org/licenses/LICENSE-2.0.html).
This post is licensed under
CC BY 4.0
by the author.