21 lines
229 B
Go
21 lines
229 B
Go
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(),
|
|
)
|
|
}
|