Documentation ¶
Overview ¶
Package stamp parses build information from git repository and changelog.md
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Show = false Verbose = false )
Functions ¶
func AsFlagged ¶
func AsFlagged()
AsFlagged shows information according to flags and exits with code 0
func NewGoTemplate ¶
NewGoTemplate returns a go source template
func Print ¶
func Print()
Example ¶
s := &Stamp{ Revision: "rev", ChangelogVersion: "1.0.2", } Use(s) Print()
Output: 1.0.2
func PrintDetails ¶
func PrintDetails()
Example ¶
s := &Stamp{ Revision: "6e6046c", ChangelogVersion: "1.0.0", } Use(s) PrintDetails()
Output: 1.0.0-6e6046c
Types ¶
type Changelog ¶
type Changelog struct {
// contains filtered or unexported fields
}
func NewChangelog ¶
type Stamp ¶
Stamp collects identifying information about a software library
func (*Stamp) ParseChangelog ¶
ParseChangelog sets ChangelogVersion of this stamp from the given file
Click to show internal directories.
Click to hide internal directories.