mirror of
https://github.com/hamster1963/HomeDash-Backend.git
synced 2025-06-17 20:51:24 +08:00
update: 初始化代码提交
This commit is contained in:
28
main.go
Normal file
28
main.go
Normal file
@ -0,0 +1,28 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
_ "github.com/gogf/gf/contrib/drivers/mysql/v2"
|
||||
"github.com/gogf/gf/v2/os/gctx"
|
||||
"home-network-watcher/internal/cmd"
|
||||
_ "home-network-watcher/internal/logic"
|
||||
_ "home-network-watcher/internal/packed"
|
||||
binInfo "home-network-watcher/utility/bin_utils"
|
||||
)
|
||||
|
||||
var (
|
||||
GitTag = "unknown"
|
||||
GitCommitLog = "unknown"
|
||||
GitStatus = "cleanly"
|
||||
BuildTime = "unknown"
|
||||
BuildGoVersion = "unknown"
|
||||
)
|
||||
|
||||
func main() {
|
||||
// 注入编译时的信息
|
||||
binInfo.GitTag = GitTag
|
||||
binInfo.GitCommitLog = GitCommitLog
|
||||
binInfo.GitStatus = GitStatus
|
||||
binInfo.BuildTime = BuildTime
|
||||
binInfo.BuildGoVersion = BuildGoVersion
|
||||
cmd.Main.Run(gctx.New())
|
||||
}
|
Reference in New Issue
Block a user