datever

package module
v0.0.0-...-b4e35e2 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Compare

func Compare(a, b Version) int

Compare will compare two datever versions. Returning

Types

type Version

type Version struct {
	Year     int
	Month    time.Month
	Sequence uint
}

Version represents a version that is formatted as "YYYY.MM.N". Example "2023.4.2"

func Parse

func Parse(s string) (Version, error)

func (Version) Increment

func (v Version) Increment(now time.Time) Version

Increment will increment the current version according to the rules of datever.

func (Version) String

func (v Version) String() string

String implements fmt.Stringer

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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