jinshan/main.go
2025-06-19 10:35:26 +08:00

36 lines
678 B
Go

package main
import (
"os"
"gitlab.guxuan.icu/jinshan_community/cmd"
"github.com/urfave/cli/v2"
)
// Usage: go build -ldflags "-X main.VERSION=x.x.x"
var VERSION = "v1.0.0"
// @title jinshan_community
// @version v1.0.0
// @description 近山社区小程序平台
// @securityDefinitions.apikey ApiKeyAuth
// @in header
// @name Authorization
// @schemes http https
// @basePath /
func main() {
app := cli.NewApp()
app.Name = "jinshan_community"
app.Version = VERSION
app.Usage = "近山社区小程序平台"
app.Commands = []*cli.Command{
cmd.StartCmd(),
cmd.StopCmd(),
cmd.VersionCmd(VERSION),
}
err := app.Run(os.Args)
if err != nil {
panic(err)
}
}