Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RenderVersion ¶
RenderVersion formats a version string from tokens and values.
Types ¶
type Resolver ¶
type Resolver struct {
// contains filtered or unexported fields
}
Resolver resolves the next CalVer version from the current date and git tags.
func (*Resolver) BumpAuto ¶
BumpAuto is not used by the CalVer calculator; it satisfies the VersionCalculator interface for internal/versioning/perenv.
func (*Resolver) BumpFromDate ¶
BumpFromDate computes the next CalVer version from date only, without querying git. tags is a caller-provided slice of bare version strings (no prefix), newest first. Implements the VersionCalculator interface consumed by internal/versioning/perenv.
type Token ¶
Token is one component of a parsed CalVer format string.
func ParseFormat ¶
ParseFormat parses a CalVer format string (e.g. "YYYY.MM.PATCH") into tokens. Returns an error if PATCH is absent or not the last non-literal token.