Documentation ¶
Index ¶
Constants ¶
View Source
const ( // FullVerPattern matches only against full versions, no pre-releases. FullVerPattern string = `\d+\.\d+\.\d+$` )
Variables ¶
View Source
var (
ErrNotDirty = errors.New("repository is clean")
)
View Source
var (
FullVerRegexp = regexp.MustCompile(FullVerPattern)
)
Functions ¶
func LastModificationTime ¶
Types ¶
type VersionTag ¶
func NewVersionTag ¶
func NewVersionTag(original string) (vt *VersionTag)
type VersionTags ¶
type VersionTags []*VersionTag
func FilterVersionTags ¶
func FilterVersionTags(raw []string) (out VersionTags)
func (VersionTags) Len ¶
func (s VersionTags) Len() int
func (VersionTags) Less ¶
func (s VersionTags) Less(i, j int) bool
func (VersionTags) Swap ¶
func (s VersionTags) Swap(i, j int)
Click to show internal directories.
Click to hide internal directories.