27 lines
418 B
Go
27 lines
418 B
Go
package main
|
|
|
|
import (
|
|
"github.com/gogf/gf/v2/frame/g"
|
|
"github.com/gogf/gf/v2/os/gctx"
|
|
|
|
"git.5iot.com/iotlcm-public/iotlcm-openapi/internal/cmd"
|
|
)
|
|
|
|
var (
|
|
BuildVersion = "0.0"
|
|
BuildTime = ""
|
|
CommitID = ""
|
|
)
|
|
|
|
func main() {
|
|
ctx := gctx.GetInitCtx()
|
|
g.Log().Noticef(
|
|
ctx,
|
|
"iotlcm-openapi starting, version:%s, buildTime:%s, commitID:%s",
|
|
BuildVersion,
|
|
BuildTime,
|
|
CommitID,
|
|
)
|
|
cmd.Main.Run(ctx)
|
|
}
|