semver

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package semver contains Semantic Versioning helper functions (https://semver.org/)

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FuncMap

func FuncMap() template.FuncMap

Types

type Version

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

func Latest added in v0.0.4

func Latest(input interface{}) (*Version, error)

func Major added in v0.0.4

func Major(input interface{}) (*Version, error)

func Minor added in v0.0.4

func Minor(input interface{}) (*Version, error)

func NewVersion

func NewVersion(s string) (Version, error)

func Parse added in v0.0.4

func Parse(input interface{}) (*Version, error)

func Patch added in v0.0.4

func Patch(input interface{}) (*Version, error)

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