Documentation
¶
Overview ¶
Package build provides functions to retrieve source control version information.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GitRevision ¶
func GitRevision() string
GitRevision retrieves the revision of the current build. If the build contains uncommitted changes the revision will be suffixed with "-dirty". This is written based on https://go.dev/ref/mod#pseudo-versions.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.