versions

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2023 License: MIT Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadFile

func ReadFile(name string, mandatory ...string) (map[string]string, error)

Types

type Constraint

type Constraint []NumConstraint

func SemVerConstraint

func SemVerConstraint(major, minor, patch int) Constraint

func (Constraint) Check

func (vc Constraint) Check(v ...int) error

type NumAtLeast

type NumAtLeast struct {
	Name string
	V    int
}

func (NumAtLeast) Check

func (vnc NumAtLeast) Check(v int) error

type NumConstraint

type NumConstraint interface {
	Check(n int) error
}

type NumExact

type NumExact struct {
	Name string
	V    int
}

func (NumExact) Check

func (vnc NumExact) Check(v int) error

type SemVerPart

type SemVerPart int
const (
	SemVerMajor SemVerPart = iota
	SemVerMinor
	SemVerPatch
	SemVerPreRelease
	SemVerMeta
)

func (SemVerPart) String

func (svp SemVerPart) String() string

Jump to

Keyboard shortcuts

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