Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FormatedVersion ¶
type FormatedVersion struct {
Version string `json:"version" yaml:"version"`
}
FormatedVersion Entity
type OutputFormat ¶
type OutputFormat int
OutputFormat Version output format enum
const ( JSON OutputFormat = iota Yaml )
Version Output format enum definition
type Version ¶
type Version struct { Name string Author string License string Major int Minor int Build int Rev int }
Version Entity
func FromString ¶ added in v0.0.22
func (*Version) PrintAnsiHeader ¶
func (v *Version) PrintAnsiHeader()
PrintAnsiHeader Prints a Application Version Ansi Header
func (*Version) PrintHeader ¶
func (v *Version) PrintHeader()
PrintHeader Prints an Application Version simple text header
func (*Version) PrintVersion ¶
PrintVersion Prints the application version in the desired format
Click to show internal directories.
Click to hide internal directories.