Documentation ¶
Overview ¶
Package arch provides information about the currently CPU architecture.
Index ¶
Constants ¶
View Source
const ( // Invalid describes an unknown architecture or an invalid enum value. Invalid T = "invalid" // AMD64 describes the amd64 architecture. AMD64 = "amd64" // I386 describes the i386 architecture. I386 = "i386" )
Variables ¶
This section is empty.
Functions ¶
func BitnessNames ¶
func BitnessNames() []string
BitnessNames returns a list of possible string values of Bitness.
Types ¶
type Bitness ¶
type Bitness int
Bitness describes the bitness of an architecture.
ENUM( invalid 32Bit = 32 64Bit = 64 )
func ParseBitness ¶
ParseBitness attempts to convert a string to a Bitness.
func (Bitness) MarshalText ¶
MarshalText implements the text marshaller method.
func (*Bitness) UnmarshalText ¶
UnmarshalText implements the text unmarshaller method.
type ErrNotImplemented ¶ added in v0.5.0
type ErrNotImplemented struct {
Message string
}
func (*ErrNotImplemented) Error ¶ added in v0.5.0
func (e *ErrNotImplemented) Error() string
Source Files ¶
Click to show internal directories.
Click to hide internal directories.