goversion

package
v0.0.0-...-407d013 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package goversion provides a wrapper around the `GoVersion` type from the delve debugger

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GoVersion

type GoVersion struct {
	goversion.GoVersion
	// contains filtered or unexported fields
}

GoVersion is just a wrapper around go-delve's goversion.GoVersion that also preserves the raw version string used for instantiating it. This is movivated by the need to disambiguate versions without revision numbers from versions with revision number 0 (eg. `1.19.0` vs `1.19`).

func NewGoVersion

func NewGoVersion(rawVersion string) (GoVersion, error)

NewGoVersion returns a new GoVersion struct

func (*GoVersion) AfterOrEqual

func (v *GoVersion) AfterOrEqual(other GoVersion) bool

AfterOrEqual returns whether one GoVersion is after or equal to the other.

func (GoVersion) String

func (v GoVersion) String() string

String returns the raw version string from this GoVersion

Jump to

Keyboard shortcuts

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