Documentation ¶ Index ¶ type Arch func MustParse(arch string) Arch func Parse(arch string) (Arch, error) func (arch *Arch) Is(other *Arch) bool func (arch *Arch) IsWildcard() bool func (arch Arch) MarshalText() ([]byte, error) func (arch Arch) String() string func (arch *Arch) UnmarshalText(text []byte) error 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 Source Files ¶ View all Source files arch.go Click to show internal directories. Click to hide internal directories.