arch

package
v0.5.4 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2023 License: GPL-3.0 Imports: 0 Imported by: 0

Documentation

Overview

Package arch contains platform architecture constants and a specific type that correlates to the current system architecture.

Index

Constants

View Source
const Current = X64

Current is the local machine's platform architecture.

Variables

This section is empty.

Functions

This section is empty.

Types

type Architecture

type Architecture uint8

Architecture is a number representation of the chipset architecture.

const (
	// X64 represents the 64-bit chipset family.
	X64 Architecture = 0x0
	// X86 represents the 32-bit chipset family.
	X86 Architecture = 0x1
	// ARM represents the ARM chipset family.
	ARM Architecture = 0x2
	// PowerPC represents the PowerPC chipset family.
	PowerPC Architecture = 0x3
	// Mips represents the MIPS chipset family.
	Mips Architecture = 0x4
	// Risc represents the RiscV chipset family.
	Risc Architecture = 0x5
	// ARM64 represents the ARM64 chipset family.
	ARM64 Architecture = 0x6
	// WASM represents the WASM/JavaScript software family.
	WASM Architecture = 0x7
	// Loong64 represents the LoongArch64 chipset family.
	Loong64 Architecture = 0x8
	// X86OnX64 represents the 64-bit chipset family, but the executable
	// is compiled for X86.
	X86OnX64 Architecture = 0x9
	// ARMOnARM64 represents the ARM64 chipset family, but the executable
	// is compiled for ARM.
	ARMOnARM64 Architecture = 0xA
	// Unknown represents an unknown chipset family.
	Unknown Architecture = 0xF
)

func (Architecture) String

func (a Architecture) String() string

String returns the name of the Architecture type.

Jump to

Keyboard shortcuts

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