Skip to content

Commit

Permalink
fix: 修复了需要传入变量的注释错误
Browse files Browse the repository at this point in the history
refactor: 现在版本与后端地址的默认值为unknown
  • Loading branch information
hamster1963 committed Jul 21, 2023
1 parent 6bfcd68 commit 1ca07ed
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,11 @@ import (
_ "kes-cron/internal/packed"
)

// GitTag 初始化为 unknown,如果编译时没有传入这些值,则为 unknown
// GitTag 为编译时传入的版本号
// BackendBaseUrl 为编译时传入的后端地址
var (
GitTag = ""
BackendBaseUrl = ""
GitTag = "unknown"
BackendBaseUrl = "unknown"
)

func main() {
Expand Down

0 comments on commit 1ca07ed

Please sign in to comment.