yoake/internal/version/version.go

15 lines
202 B
Go
Raw Normal View History

2022-11-11 16:15:22 -06:00
package version
2022-11-15 10:31:27 -06:00
import "runtime/debug"
2022-11-11 16:15:22 -06:00
var (
2022-11-15 10:31:27 -06:00
Version = func() string {
info, ok := debug.ReadBuildInfo()
if !ok {
return "unknown"
}
return info.Main.Version
}()
2022-11-11 16:15:22 -06:00
BuildDate = "unknown"
)