calver

package
v0.0.0-...-889cf29 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 6, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	YYYY = Convention{
			// contains filtered or unexported fields
	}
	YY = Convention{
		// contains filtered or unexported fields
	}

	MM = Convention{
		// contains filtered or unexported fields
	}
	M0 = Convention{
		// contains filtered or unexported fields
	}

	DD = Convention{
		// contains filtered or unexported fields
	}
	D0 = Convention{
		// contains filtered or unexported fields
	}

	MICRO = Convention{
			// contains filtered or unexported fields
	}
	CONVENTIONS = map[string]Convention{
		YYYY.representation:  YYYY,
		YY.representation:    YY,
		zeroY.representation: zeroY,
		MM.representation:    MM,
		M0.representation:    M0,
		zeroM.representation: zeroM,
		DD.representation:    DD,
		D0.representation:    D0,
		zeroD.representation: zeroD,
		MICRO.representation: MICRO,
	}
)
View Source
var Now = time.Now

this is for testing purpose only

Functions

func ValidatePattern

func ValidatePattern(pattern string) error

Types

type Convention

type Convention struct {
	// contains filtered or unexported fields
}

func (*Convention) Format

func (c *Convention) Format(value int) string

type Version

type Version struct {
	// contains filtered or unexported fields
}

func NewVersion

func NewVersion(pattern string, micro int) (*Version, error)

func Parse

func Parse(pattern, value string) (*Version, error)

func (*Version) CompareTo

func (v *Version) CompareTo(v2 *Version) int

func (*Version) Next

func (v *Version) Next() *Version

func (*Version) String

func (v *Version) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL