Embeds git-describe output in your Golang binary. Alternative to 'go build -ldflags -X version=' command.
-
Updated
Nov 18, 2022 - Go
Embeds git-describe output in your Golang binary. Alternative to 'go build -ldflags -X version=' command.
gh extension to execute `git describe` on a remote GitHub repository.
gogitversion generates a Go source file that declares a const for a version string, whose contents are the output of 'git describe'.
Add a description, image, and links to the git-describe topic page so that developers can more easily learn about it.
To associate your repository with the git-describe topic, visit your repo's landing page and select "manage topics."