Documentation
¶
Index ¶
Constants ¶
View Source
const (
DefaultVersion = "EXPERIMENTAL"
)
Variables ¶
View Source
var BuildAt string
BuildAt build time
View Source
var BuildBy string
BuildBy build user
View Source
var BuildVersion string
BuildVersion build verion
View Source
var Commit string
Commit commit
View Source
var GoVersion string
GoVersion go version
View Source
var VersionCmd = &cobra.Command{ Use: "version", Short: "Print version", Run: func(cmd *cobra.Command, args []string) { v := New() content, err := json.Marshal(v) if err != nil { fmt.Printf("Cannot get version information: %v\n", err) return } fmt.Printf("%s\n", string(content)) }, }
VersionCmd version command
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.