Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetVersionInfo ¶ added in v1.0.1
func SetVersionInfo(version, commit, date string)
SetVersionInfo records the build information injected at link time and enables the --version flag. An empty version means the binary was built without ldflags (go build / go run), which reports as "dev" rather than leaving --version unavailable.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.