18 lines
267 B
Go
18 lines
267 B
Go
package main
|
|
|
|
import (
|
|
"oc-peer/infrastructure"
|
|
_ "oc-peer/routers"
|
|
|
|
oclib "cloud.o-forge.io/core/oc-lib"
|
|
beego "github.com/beego/beego/v2/server/web"
|
|
)
|
|
|
|
const appname = "oc-peer"
|
|
|
|
func main() {
|
|
oclib.InitAPI(appname)
|
|
infrastructure.ListenNATS()
|
|
beego.Run()
|
|
}
|