versions

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrParseDelveVersion = fmt.Errorf("%w: delve version", ErrPerseVersion)
View Source
var ErrParseGoVersion = fmt.Errorf("%w: go version", ErrPerseVersion)
View Source
var ErrPerseVersion = errors.New("unrecognizeable version")
View Source
var Supports = []Support{

	{
		Delve: Delve(1, 22, 1, ""),
		MinGo: Go(1, 19, 0, ""),
		MaxGo: Go(1, 22, 0, ""),
	},
	{
		Delve: Delve(1, 22, 0, ""),
		MinGo: Go(1, 19, 0, ""),
		MaxGo: Go(1, 22, 0, ""),
	},
	{
		Delve: Delve(1, 21, 2, ""),
		MinGo: Go(1, 19, 0, ""),
		MaxGo: Go(1, 21, 0, ""),
	},
	{
		Delve: Delve(1, 21, 1, ""),
		MinGo: Go(1, 19, 0, ""),
		MaxGo: Go(1, 21, 0, ""),
	},
	{
		Delve: Delve(1, 21, 0, ""),
		MinGo: Go(1, 18, 0, ""),
		MaxGo: Go(1, 21, 0, ""),
	},
	{
		Delve: Delve(1, 20, 2, ""),
		MinGo: Go(1, 18, 0, ""),
		MaxGo: Go(1, 20, 0, ""),
	},
	{
		Delve: Delve(1, 20, 1, ""),
		MinGo: Go(1, 18, 0, ""),
		MaxGo: Go(1, 20, 0, ""),
	},
	{
		Delve: Delve(1, 20, 0, ""),
		MinGo: Go(1, 18, 0, ""),
		MaxGo: Go(1, 20, 0, ""),
	},
	{
		Delve: Delve(1, 9, 1, ""),
		MinGo: Go(1, 17, 0, ""),
		MaxGo: Go(1, 19, 0, ""),
	},
	{
		Delve: Delve(1, 9, 0, ""),
		MinGo: Go(1, 16, 0, ""),
		MaxGo: Go(1, 19, 0, ""),
	},
	{
		Delve: Delve(1, 8, 3, ""),
		MinGo: Go(1, 16, 0, ""),
		MaxGo: Go(1, 18, 0, ""),
	},
	{
		Delve: Delve(1, 8, 2, ""),
		MinGo: Go(1, 16, 0, ""),
		MaxGo: Go(1, 18, 0, ""),
	},
	{
		Delve: Delve(1, 8, 1, ""),
		MinGo: Go(1, 16, 0, ""),
		MaxGo: Go(1, 18, 0, ""),
	},
	{
		Delve: Delve(1, 8, 0, ""),
		MinGo: Go(1, 16, 0, ""),
		MaxGo: Go(1, 18, 0, ""),
	},
	{
		Delve: Delve(1, 7, 3, ""),
		MinGo: Go(1, 15, 0, ""),
		MaxGo: Go(1, 17, 0, ""),
	},
	{
		Delve: Delve(1, 7, 2, ""),
		MinGo: Go(1, 15, 0, ""),
		MaxGo: Go(1, 17, 0, ""),
	},
	{
		Delve: Delve(1, 7, 1, ""),
		MinGo: Go(1, 15, 0, ""),
		MaxGo: Go(1, 17, 0, ""),
	},
	{
		Delve: Delve(1, 7, 0, ""),
		MinGo: Go(1, 15, 0, ""),
		MaxGo: Go(1, 17, 0, ""),
	},
	{
		Delve: Delve(1, 6, 1, ""),
		MinGo: Go(1, 14, 0, ""),
		MaxGo: Go(1, 16, 0, ""),
	},
	{
		Delve: Delve(1, 6, 0, ""),
		MinGo: Go(1, 13, 0, ""),
		MaxGo: Go(1, 16, 0, ""),
	},
	{
		Delve: Delve(1, 5, 1, ""),
		MinGo: Go(1, 13, 0, ""),
		MaxGo: Go(1, 15, 0, ""),
	},
	{
		Delve: Delve(1, 5, 0, ""),
		MinGo: Go(1, 12, 0, ""),
		MaxGo: Go(1, 15, 0, ""),
	},
	{
		Delve: Delve(1, 4, 1, ""),
		MinGo: Go(1, 12, 0, ""),
		MaxGo: Go(1, 14, 0, ""),
	},
	{
		Delve: Delve(1, 4, 0, ""),
		MinGo: Go(1, 11, 0, ""),
		MaxGo: Go(1, 14, 0, ""),
	},
}

Table show that which delve supports which go.

Functions

This section is empty.

Types

type DelveVersion

type DelveVersion struct {
	Major   int
	Minor   int
	Release int
	Suffix  string
}

func Delve

func Delve(major, minor, release int, suffix string) DelveVersion

func (DelveVersion) Cmp

func (dlvv DelveVersion) Cmp(other DelveVersion) int

func (DelveVersion) PackageQual

func (dlvv DelveVersion) PackageQual() string

func (*DelveVersion) Set

func (dlvv *DelveVersion) Set(value string) error

func (DelveVersion) String

func (dlvv DelveVersion) String() string

type GoVersion

type GoVersion struct {
	Major   int
	Minor   int
	Release int
	Suffix  string
}

func Go

func Go(major, minor, release int, suffix string) GoVersion

func (GoVersion) Cmp

func (gv GoVersion) Cmp(other GoVersion) int

func (*GoVersion) Set

func (gv *GoVersion) Set(value string) error

func (GoVersion) String

func (gv GoVersion) String() string

type Support

type Support struct {
	Delve DelveVersion
	MinGo GoVersion
	MaxGo GoVersion
}

func (Support) Compat

func (spt Support) Compat(gov GoVersion) bool

Jump to

Keyboard shortcuts

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