arch

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2020 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

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

ENUM( Invalid 32Bit = 32 64Bit = 64 )

const (
	// BitnessInvalid is a Bitness of type Invalid
	BitnessInvalid Bitness = iota
	// Bitness32Bit is a Bitness of type 32Bit
	Bitness32Bit Bitness = iota + 31
	// Bitness64Bit is a Bitness of type 64Bit
	Bitness64Bit Bitness = iota + 62
)

func ParseBitness

func ParseBitness(name string) (Bitness, error)

ParseBitness attempts to convert a string to a Bitness

func (Bitness) MarshalText

func (x Bitness) MarshalText() ([]byte, error)

MarshalText implements the text marshaller method

func (Bitness) Short

func (b Bitness) Short() string

func (Bitness) String

func (x Bitness) String() string

String implements the Stringer interface.

func (*Bitness) UnmarshalText

func (x *Bitness) UnmarshalText(text []byte) error

UnmarshalText implements the text unmarshaller method

type T

type T int
const (
	Invalid T = iota
	AMD64
	I386
)

func Native

func Native() T

func (T) Bitness

func (t T) Bitness() Bitness

Jump to

Keyboard shortcuts

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