package
module
Version:
v1.1.1
Opens a new window with list of versions in this module.
Published: Jul 9, 2021
License: GPL-3.0
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 10
Opens a new window with list of known importers.
README
¶
version
![Go Report Card](https://goreportcard.com/badge/github.com/liserjrqlxue/version)
After assign version info when go build
, log out version info when run
gitDescribe=$(git branch --show-current):$(git describe --tags --dirty)
golangVersion=$(go version)
buildStamp=$(date '+%Y-%m-%d_%I:%M:%S%p')
go build -ldflags "-X 'github.com/liserjrqlxue/version.gitDescribe=$gitDescribe' -X 'github.com/liserjrqlxue/version.buildStamp=$buildStamp -X 'github.com/liserjrqlxue/version.golangVersion=$golangVersion'"
vb
vb
do the go build
commands above
Documentation
¶
LogVersion log out version info
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.