api-base/pkg/version/version.go

21 lines
229 B
Go
Raw Normal View History

2020-08-15 17:21:27 +00:00
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(),
)
}