Documentation ¶
Overview ¶
version gets version information embedded during the build process in the executable, e.g. revision and revision status from the VCS.
This codebase has been modified from its original form, taken from autostrada.dev aka. Alex Edwards (2022).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetRevision ¶
func GetRevision() string
GetRevision, returns a string with the commit hash used to build the executable. If the executable was built with files with some modifications related to the last commit, the suffix '-dirty' will be added to the revision returned. If no revision information could be retrieved, the the method returns 'unavailable'.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.