mirror of
https://github.com/safedep/pmg.git
synced 2026-08-03 07:24:09 +02:00
feat: new pmg banner (#68)
* feat: new pmg banner * commit lenght check
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
package version
|
||||
|
||||
import runtimeDebug "runtime/debug"
|
||||
|
||||
var (
|
||||
Version string
|
||||
Commit string
|
||||
)
|
||||
|
||||
func init() {
|
||||
if Version == "" {
|
||||
buildInfo, _ := runtimeDebug.ReadBuildInfo()
|
||||
Version = buildInfo.Main.Version
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user