arch

package
v0.5.3 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2024 License: MPL-2.0 Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Arch

type Arch struct {
	ABI string
	OS  string
	CPU string
}

func MustParse

func MustParse(arch string) Arch

MustParse is like Parse, but panics on error.

func Parse

func Parse(arch string) (Arch, error)

Parse an architecture string into an Arch struct.

func (*Arch) Is

func (arch *Arch) Is(other *Arch) bool

func (*Arch) IsWildcard

func (arch *Arch) IsWildcard() bool

func (Arch) MarshalText

func (arch Arch) MarshalText() ([]byte, error)

func (Arch) String

func (arch Arch) String() string

func (*Arch) UnmarshalText

func (arch *Arch) UnmarshalText(text []byte) error

Jump to

Keyboard shortcuts

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