[feat] add pkgs, dockerfile, makefile

This commit is contained in:
Jay committed 2020-08-16 01:21:27 +08:00
1 parent f92efa91fc
commit 77cc488d89
16 files changed
+482 -5

No files matched your search

+20
View File
@@ -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(),
)
}