Skip to content
Snippets Groups Projects
Commit 0d786840 authored by Bo Li's avatar Bo Li
Browse files

use module version

parent 4c691e89
No related branches found
No related tags found
No related merge requests found
package build
var Version = "dev"
\ No newline at end of file
import "runtime/debug"
var Version = "dev"
func Init() {
info, ok := debug.ReadBuildInfo()
if ok && info.Main.Version != "" {
Version = info.Main.Version
}
}
\ No newline at end of file
......@@ -4,8 +4,12 @@ Copyright © 2022 443ID
*/
package main
import "gitlab.com/443id/public/443id-cli/cmd"
import (
"gitlab.com/443id/public/443id-cli/build"
"gitlab.com/443id/public/443id-cli/cmd"
)
func main() {
build.Init()
cmd.Execute()
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment