Documentation
¶
Overview ¶
Package vcs provides utilities for working with version control systems.
This package extracts version control information from Go binaries built with module support and version control integration.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Version ¶
func Version() string
Version returns build info as "time-revision-int" or "time-revision-int-dirty". The integer is derived from the first 4 bytes of the git revision hash.
func VersionInt32 ¶ added in v0.7.7
VersionInt32 returns the git revision as int32 for use as SQLite user_version. The integer is derived from the first 8 hex chars of the vcs.revision hash.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.