Documentation
¶
Overview ¶
Package version provides information about the version of the application. It includes the version string, commit hash, and timestamp. The package also defines a struct `Info` that represents the version information. The `newInfo` function creates a new `Info` instance with the provided application name. The `String` method of the `Info` struct returns a formatted string representation of the version information. The package also initializes the `Version` variable with a default version string if it is empty.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Version FIXMEDOC Version = "" // Commit FIXMEDOC Commit = "" // Timestamp FIXMEDOC Timestamp = "" )
View Source
var VersionInfo = newInfo(filepath.Base(os.Args[0]))
VersionInfo FIXMEDOC
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.