version

package
v0.0.0-...-0786b7d Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2021 License: AGPL-3.0 Imports: 3 Imported by: 33

Documentation

Overview

Package version provides helpers for working with versions and build info.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Info

type Info struct {
	Major int
	Minor int
	Patch int
	Rest  string // pre-release version and/or build metadata
}

func Parse

func Parse(version string) (Info, error)

func (*Info) Less

func (i *Info) Less(right *Info) bool

Less returns true of this (left) Version is less than right.

func (Info) String

func (i Info) String() string

Jump to

Keyboard shortcuts

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