Documentation
¶
Overview ¶
Package version contains the version information.
Example of the build command:
PKG="github.com/AdguardTeam/golibs/version"
go build -ldflags " \
-X ${PKG}.version=1.0.0 \
-X ${PKG}.committime=2026-04-20T10:00:00Z \
-X ${PKG}.revision="e3133f34fsdsd34fsfdbxffd54edf2123cds1ds0" \
-X ${PKG}.branch="AGDNS-0000-test" \
"
Index ¶
Constants ¶
View Source
const RaceEnabled = false
RaceEnabled is true if the current binary has been built with --race.
Variables ¶
This section is empty.
Functions ¶
func CommitTime ¶
func CommitTime() (t string)
CommitTime returns the compiled-in value of the commit time as a string.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.