semver

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2017 License: MPL-2.0 Imports: 1 Imported by: 1

Documentation

Overview

Package semver - Allows you to provide a simple consistent way to version different projects using SemVer.

It doesn't verify the PreReleaseLabel or the BuildMetadata for correctness.

Index

Constants

This section is empty.

Variables

View Source
var BuildMetadata string

BuildMetadata is an optional field of the SemVer version.

Functions

This section is empty.

Types

type Version

type Version struct {
	Major, Minor, Patch int
	PreReleaseLabel     string
}

The Version struct contains the information that MUST be provided in order to properly version a program.

func (Version) String

func (sv Version) String() string

Jump to

Keyboard shortcuts

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