semver

package
v0.0.0-...-dc1123b Latest Latest
Warning

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

Go to latest
Published: May 21, 2018 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SemverRequirements

type SemverRequirements struct {
	// contains filtered or unexported fields
}

func NewSemverRequirements

func NewSemverRequirements(requirements string) (*SemverRequirements, error)

parses a requirements string using the format from here: https://github.com/npm/node-semver

func (*SemverRequirements) SatisfiedBy

func (s *SemverRequirements) SatisfiedBy(sv semver.Version) bool

Checks if a semver version satisfies the requirements or not

func (*SemverRequirements) String

func (s *SemverRequirements) String() string

Jump to

Keyboard shortcuts

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