Documentation ¶
Index ¶
- func Catalog() []registeredVersion
- func GetBUILD() string
- func GetBUILDHOST() string
- func GetVersions(name, version, build string) []string
- func GetVersionsAligned(name, version, build string) []string
- func ProgVersion(name, version, build string) string
- func Register(name, version, build string)
- func ShowCatalog() string
- func ShowCatalogAligned() string
- func ShowVersions(name, version, build string) string
- func ShowVersionsAligned(name, version, build string) string
- type Version
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetBUILD ¶
func GetBUILD() string
GetBUILD returns a standard formatted BUILD date string.
e.g. date '+%Y%m%d@%T'
func GetBUILDHOST ¶
func GetBUILDHOST() string
GetBUILDHOST returns the server this was compiled on.
func GetVersions ¶
GetVersions return a list of Caller and Catalog versions.
func GetVersionsAligned ¶
GetVersionsAligned return a list of Caller and Catalog versions that is aligned via TabWriter.
func ProgVersion ¶
ProgVersion returns a formatted version string given: name, version, build
func Register ¶
func Register(name, version, build string)
Register adds a new version structure to the catalog.
func ShowCatalogAligned ¶
func ShowCatalogAligned() string
ShowCatalogAligned returns a stringified catalog list that is aligned via TabWriter
func ShowVersions ¶
ShowVersions returns a formatted version list of all registered versions in catalog
func ShowVersionsAligned ¶
ShowVersionsAligned returns a formatted version list of all registered versions in catalog aligned via TabWriter
Types ¶
type Version ¶
type Version registeredVersion
Version is the version structure stored in the catalog.
func NewVersion ¶
NewVersion returns a new Version object.
func (*Version) GetVersions ¶
GetVersions return a list of Caller and Catalog versions.
func (*Version) GetVersionsAligned ¶
GetVersionsAligned return a list of Caller and Catalog versions that is aligned via TabWriter.
func (*Version) ProgVersion ¶
ProgVersion returns a formatted version string given: name, version, build
func (*Version) ShowVersions ¶
ShowVersions returns a formatted version list of all registered versions in catalog
func (*Version) ShowVersionsAligned ¶
ShowVersionsAligned returns a formatted version list of all registered versions in catalog aligned via TabWriter