Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Version string
Version is a build-time variable that users can set to override the version string.
It can be set using: -ldflags "-X github.com/ripta/rt/pkg/version.Version=1.2.3"
Functions ¶
func GetString ¶
func GetString() string
GetString returns the version as a string. If the Version package variable is set, it returns that value. Otherwise, it attempts to get the version from the build info. If _that_ fails, it returns empty string, which you may presumably want to handle.
func NewCommand ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.