Documentation ¶
Overview ¶
helpers to get the version information for a checked out library
Index ¶
Constants ¶
This section is empty.
Variables ¶
map of Version control directory names, and the func to call on a path of that type, in order to get a version.
Functions ¶
Types ¶
type VcsFn ¶
Version control versioner
Takes an argument of the path to check, and returns a string of the version
type Version ¶
type Version struct { Path string // path of the import that this Version is for Value string // Manually setting a version string }
func FromPackage ¶
Given a build.Package, check the Dir for a directory matching CVSDirRe, if nothing check parents until SrcRoot
Click to show internal directories.
Click to hide internal directories.