Documentation ¶ Index ¶ Variables func JSON(execName string) []byte func Version() string Constants ¶ This section is empty. Variables ¶ View Source var ( GitSource string GitTag string GitBranch string GitHash string GoBuildTime string ) Functions ¶ func JSON ¶ func JSON(execName string) []byte JSON returns a JSON-encoded metadata blob for the given executable name. func Version ¶ func Version() string Version returns the best available version string. It prefers the git tag set via -ldflags, then the branch, then the short VCS revision from the embedded build info, and finally falls back to "dev". Types ¶ This section is empty. Source Files ¶ View all Source files version.go Click to show internal directories. Click to hide internal directories.