toolchain

package
v0.2.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidVersionFormat = errors.New("invalid version format")
	ErrInvalidVersionMajor  = errors.New("invalid major version component")
	ErrInvalidVersionMinor  = errors.New("invalid minor version component")
)

Functions

This section is empty.

Types

type Compiler

type Compiler int
const (
	CompilerUnknown Compiler = iota
	CompilerGCC
	CompilerClang
)

func (Compiler) String

func (c Compiler) String() string

type CompilerInfo

type CompilerInfo struct {
	BuildID   string
	Toolchain Toolchain
}

type LibC

type LibC int
const (
	LibCUnknown LibC = iota
	LibCGlibc
	LibCMusl
)

func (LibC) String

func (l LibC) String() string

type Toolchain

type Toolchain struct {
	Compiler Compiler
	Version  Version
}

func ParseToolchain

func ParseToolchain(info string) Toolchain

type Version

type Version struct {
	Major int
	Minor int
	Patch int
}

func ParseVersion

func ParseVersion(s string) (Version, error)

func (Version) IsAtLeast

func (v Version) IsAtLeast(required Version) bool

func (Version) String

func (v Version) String() string

Jump to

Keyboard shortcuts

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