semver

package
v0.3.4 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SemVer

type SemVer struct {
	Major  int
	Minor  int
	Patch  int
	Commit string
}

func MakeSemVer

func MakeSemVer(info string) (*SemVer, error)

func NewSemVer

func NewSemVer() *SemVer

func (*SemVer) FromString

func (s *SemVer) FromString(info string) error

Convert numeric version to components

func (*SemVer) String

func (s *SemVer) String() string

func (*SemVer) Version

func (s *SemVer) Version() int

Jump to

Keyboard shortcuts

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