Skip to content
This repository has been archived by the owner on Jan 20, 2022. It is now read-only.

Latest commit

 

History

History
18 lines (13 loc) · 279 Bytes

README.md

File metadata and controls

18 lines (13 loc) · 279 Bytes

gitversion

Include git commit hash in golang file

usage

gitversion -i pathToRepository -o pathToVersionFile -p packageName

-i defaults to .
-o defaults to version.go
-p defaults to version

template

package %s

var GIT_COMMIT_HASH = "%s"