update: 整理项目结构 重写中间件 提高复用性
This commit is contained in:
15
internal/version/version.go
Normal file
15
internal/version/version.go
Normal file
@@ -0,0 +1,15 @@
|
||||
package version
|
||||
|
||||
import "runtime/debug"
|
||||
|
||||
var (
|
||||
Version = "1.1.0-rc"
|
||||
GitCommit = ""
|
||||
BuildInfo = ""
|
||||
)
|
||||
|
||||
func init() {
|
||||
if info, ok := debug.ReadBuildInfo(); ok {
|
||||
BuildInfo = info.Main.Version
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user