semver

package
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateSemVerCommand

func CreateSemVerCommand() *cobra.Command

CreateSemVerCommand creates the root Semantic Version command

Types

type Version

type Version struct {
	Major int
	Minor int
	Patch int
}

Version represents a semantic version

func Parse

func Parse(toParse string) (Version, error)

Parse parses a string to a 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