2018年6月26日 星期二

Install Beego (Golang)

1. Download and install
$ go get github.com/astaxie/beego

2. Create file hello.go
$ emcas -nw hello.go
package main

import "github.com/astaxie/beego"

func main() {
    beego.Run()
}

3. Build and run
$ go build hello.go
$ ./hello

4. Installing bee tool
$ go get github.com/beego/bee

5. Bee tool commands
$ bee


6. Create new project
$ bee new myproject


7. Bee run
$ bee run



沒有留言:

張貼留言