versioncheck

package
v1.5.3 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2019 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package versioncheck provides utility wrappers for go-version, allowing the constraints to be used as global variables.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Compile

func Compile(constraint string) (go_version.Constraints, error)

Compile trivially wraps go-version.NewConstraint, returning the constraint and error

func MustCompile

func MustCompile(constraint string) go_version.Constraints

MustCompile wraps go-version.NewConstraint, panicing when an error is returns (this occurs when the constraint cannot be parsed). It is intended to be use similar to re.MustCompile, to ensure unparseable constraints are caught in testing.

Types

This section is empty.

Jump to

Keyboard shortcuts

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