[feat] add pkgs, dockerfile, makefile
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
package version
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"runtime"
|
||||
)
|
||||
|
||||
var (
|
||||
Version string
|
||||
BuildDate string
|
||||
)
|
||||
|
||||
func PrintCliVersion() string {
|
||||
return fmt.Sprintf(
|
||||
"version: %s, built on %s, %s",
|
||||
Version,
|
||||
BuildDate,
|
||||
runtime.Version(),
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user