cmd/helmify/version.go
package main
import (
"fmt"
)
// these information will be collected when build, by `-ldflags "-X main.version=0.1"`.
var (
version = "development"
date = "not set"
commit = "not set"
)
func printVersion() {
fmt.Printf("Version: %s\n", version)
fmt.Printf("Build Time: %s\n", date)
fmt.Printf("Git Commit: %s\n", commit)
}