Documentation
¶
Index ¶
- Variables
- func IsTimeVersionFirst(layout []token) bool
- type Calver
- func (cv *Calver) In(loc *time.Location) *Calver
- func (cv *Calver) Layout() string
- func (cv *Calver) Major() (*Calver, error)
- func (cv *Calver) Micro() (*Calver, error)
- func (cv *Calver) Minor() (*Calver, error)
- func (cv *Calver) Modifier(m string) (*Calver, error)
- func (cv *Calver) Next() (*Calver, error)
- func (cv *Calver) NextWithTime(now time.Time) (ncv *Calver, err error)
- func (cv *Calver) Parse(value string) (ncv *Calver, err error)
- func (cv *Calver) String() string
- func (cv *Calver) TrimSuffix(enable bool) *Calver
- type Calvers
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoVersions = errors.New("no versions")
Functions ¶
func IsTimeVersionFirst ¶ added in v0.7.2
func IsTimeVersionFirst(layout []token) bool
IsTimeVersionFirst returns true if the time version is first in the layout.
Types ¶
type Calver ¶
type Calver struct {
// contains filtered or unexported fields
}
func NewWithTime ¶
NewWithTime returns *Calver at the given time.
func (*Calver) NextWithTime ¶
Next returns next version *Calver at the given time.
func (*Calver) TrimSuffix ¶ added in v0.6.0
TrimSuffix returns *Calver enabled/diabled to trim the trailing version of a zero value or an empty string.
Click to show internal directories.
Click to hide internal directories.