Post

Beego Base

Beego

Github

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

Modules

Community

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.