version

package
v0.0.0-...-f45be23 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Version

type Version struct {
	Prefix   string
	Major    int
	Minor    int
	Patch    int
	Raw      string
	Misc     string
	Semantic bool
}

func NewVersion

func NewVersion(raw string) *Version

func (*Version) IsCompatible

func (version *Version) IsCompatible(otherVersion *Version) bool

func (*Version) IsEqual

func (version *Version) IsEqual(otherVersion *Version) bool

func (*Version) MarshalJSON

func (version *Version) MarshalJSON() ([]byte, error)

func (*Version) Parse

func (version *Version) Parse(raw string) error

func (*Version) UnmarshalJSON

func (version *Version) UnmarshalJSON(data []byte) error

Jump to

Keyboard shortcuts

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