version

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const MinimumGoVersion = "1.25"

Variables

This section is empty.

Functions

func CheckGoVersion

func CheckGoVersion() error

CheckGoVersion verifies that the system's installed Go version meets the minimum requirement. Returns an error if Go is not installed or version is too old.

func CheckMinimumGoVersion

func CheckMinimumGoVersion(minimum string) error

CheckMinimumGoVersion checks if the system's installed Go version meets the specified minimum. The minimum should be in the format "1.25" (major.minor).

Types

type GoNotFoundError

type GoNotFoundError struct{}

GoNotFoundError represents an error when Go is not installed.

func (*GoNotFoundError) Error

func (e *GoNotFoundError) Error() string

type VersionError

type VersionError struct {
	Current string
	Minimum string
}

VersionError represents an error when the Go version is too old.

func (*VersionError) Error

func (e *VersionError) Error() string

Jump to

Keyboard shortcuts

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