pkg

package
v0.11.3 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2025 License: MIT Imports: 11 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetVersionHTTPHandler added in v0.11.2

func GetVersionHTTPHandler() http.HandlerFunc

Types

type Args added in v0.10.0

type Args struct {
	Command string
	Args    []string
}

func GetArgs added in v0.10.0

func GetArgs(validator CommandValidator) Args

type CommandValidator added in v0.10.0

type CommandValidator interface {
	IsCommandValid(cmd string) bool
}

type Version added in v0.11.2

type Version struct{ Generation, Major, Minor int }

func GetLastVersion added in v0.11.2

func GetLastVersion() Version

func GetVersion

func GetVersion() Version

func ParseVersion added in v0.11.2

func ParseVersion(v string) (ver Version)

func Ver added in v0.11.2

func Ver(major, minor, patch int) Version

func (Version) IsEqual added in v0.11.2

func (v Version) IsEqual(other Version) bool

func (Version) IsNewerMajorThan added in v0.11.2

func (v Version) IsNewerMajorThan(other Version) bool

func (Version) MarshalText added in v0.11.2

func (v Version) MarshalText() ([]byte, error)

func (Version) String added in v0.11.2

func (v Version) String() string

Jump to

Keyboard shortcuts

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