public enum GoArch extends Enum<GoArch>
Enum Constant and Description |
---|
AMD64 |
AMD64P32 |
ARM |
ARM64 |
ARM64BE |
ARMBE |
ARMV5 |
ARMv6 |
ARMV7 |
I386 |
MIPS |
MIPS64 |
MIPS64LE |
MIPS64P32 |
MIPS64P32LE |
MIPSLE |
PPC |
PPC64 |
PPC64LE |
RISCV |
RISCV64 |
S390 |
S390X |
SPARC |
SPARC64 |
WASM |
Modifier and Type | Method and Description |
---|---|
static GoArch |
fromArchitecture(Architecture arch)
returns the corresponding GoOs for a given Architecture
|
static GoArch |
fromString(String name)
Finds the GoArch from it's name.
|
String |
getEnvVarValue()
Returns the environment variable to be used for GOARCH to Go tools.
|
String |
getEnvVarValueForArm()
Returns the environment variable to be used for GOARM to Go tools.
|
static GoArch |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static GoArch[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final GoArch I386
public static final GoArch AMD64
public static final GoArch AMD64P32
public static final GoArch ARM
public static final GoArch ARMV5
public static final GoArch ARMv6
public static final GoArch ARMV7
public static final GoArch ARMBE
public static final GoArch ARM64
public static final GoArch ARM64BE
public static final GoArch PPC64
public static final GoArch PPC64LE
public static final GoArch MIPS
public static final GoArch MIPSLE
public static final GoArch MIPS64
public static final GoArch MIPS64LE
public static final GoArch MIPS64P32
public static final GoArch MIPS64P32LE
public static final GoArch PPC
public static final GoArch RISCV
public static final GoArch RISCV64
public static final GoArch S390
public static final GoArch S390X
public static final GoArch SPARC
public static final GoArch SPARC64
public static final GoArch WASM
public static GoArch[] values()
for (GoArch c : GoArch.values()) System.out.println(c);
public static GoArch valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String getEnvVarValue()
public String getEnvVarValueForArm()
public static GoArch fromString(String name)
name
- name of the GoArch as defined from Go itselfNoSuchElementException
- when a GoArch is not found for the namepublic static GoArch fromArchitecture(Architecture arch) throws HumanReadableException
arch
- the Architecture
to lookupHumanReadableException
- when a specific GoArch is not found for the Architecture