versions

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2017 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Regexp

func Regexp(pattern string) (*regexp.Regexp, error)

Types

type Extraction

type Extraction struct {
	// path to an object in bucket
	Path string

	// parsed semantic version
	Version *version.Version

	// the raw version match
	VersionNumber string
}

func Parse

func Parse(filename string, pattern *regexp.Regexp) (Extraction, bool)

type Extractions

type Extractions []Extraction

func Extract

func Extract(filenames []string, pattern *regexp.Regexp) (Extractions, error)

func (Extractions) Len

func (e Extractions) Len() int

func (Extractions) Less

func (e Extractions) Less(i int, j int) bool

func (Extractions) Swap

func (e Extractions) Swap(i int, j int)

Jump to

Keyboard shortcuts

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