Files
pmg/internal/version/version.go
T

16 lines
216 B
Go
Raw Normal View History

2025-08-21 23:01:30 +05:30
package version
import runtimeDebug "runtime/debug"
var (
Version string
Commit string
)
func init() {
if Version == "" {
buildInfo, _ := runtimeDebug.ReadBuildInfo()
Version = buildInfo.Main.Version
}
}