Documentation
¶
Overview ¶
Package vcs returns the application version derived from embedded VCS build info. If the working tree was modified at build time, "_dirty" is appended.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Modified string
View Source
var Revision string
Revision and Modified can be set at build time via ldflags:
-X github.com/rhemvi/omaclip/foundation/vcs.Revision=$(git rev-parse --short HEAD) -X github.com/rhemvi/omaclip/foundation/vcs.Modified=$(git diff --quiet && echo false || echo true)
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.