version

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2015 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MatcherString      = "[0-9]+[.][0-9]+[.][0-9]+"
	GroupMatcherString = "([0-9]+)[.]([0-9]+)[.]([0-9]+)"
)

Variables

This section is empty.

Functions

func Set

func Set(ver *Version) error

Set runs the set_version script.

func SetForBranch

func SetForBranch(ver *Version, branch string) (act action.Action, err error)

Types

type Version

type Version struct {
	Major uint
	Minor uint
	Patch uint
}

func FromTag

func FromTag(tag string) (*Version, error)

func Get

func Get() (*Version, error)

Get runs the get_version script.

func GetByBranch

func GetByBranch(branch string) (ver *Version, err error)

func Parse

func Parse(versionString string) (*Version, error)

func (*Version) IncrementMinor

func (ver *Version) IncrementMinor() *Version

func (*Version) IncrementPatch

func (ver *Version) IncrementPatch() *Version

func (*Version) ReleaseTagString

func (ver *Version) ReleaseTagString() string

func (*Version) Set

func (ver *Version) Set(versionString string) error

func (*Version) String

func (ver *Version) String() string

func (*Version) Zero

func (ver *Version) Zero() bool

Jump to

Keyboard shortcuts

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