public enum GoOs extends Enum<GoOs>
Enum Constant and Description |
---|
AIX |
ANDROID |
DARWIN |
DRAGONFLY |
FREEBSD |
HURD |
JS |
LINUX |
NACL |
NETBSD |
OPENBSD |
PLAN9 |
SOLARIS |
WINDOWS |
ZOS |
Modifier and Type | Method and Description |
---|---|
static GoOs |
fromPlatform(Platform platform)
returns the corresponding GoOs for a given Platform
|
static GoOs |
fromString(String name)
Finds the GoOs from it's name.
|
String |
getEnvVarValue()
Returns the environment variable to be used for GOOS to Go tools.
|
static GoOs |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static GoOs[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final GoOs AIX
public static final GoOs ANDROID
public static final GoOs DARWIN
public static final GoOs DRAGONFLY
public static final GoOs FREEBSD
public static final GoOs HURD
public static final GoOs JS
public static final GoOs LINUX
public static final GoOs NACL
public static final GoOs NETBSD
public static final GoOs OPENBSD
public static final GoOs PLAN9
public static final GoOs SOLARIS
public static final GoOs WINDOWS
public static final GoOs ZOS
public static GoOs[] values()
for (GoOs c : GoOs.values()) System.out.println(c);
public static GoOs 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 static GoOs fromString(String name) throws NoSuchElementException
name
- name of the GoOS as defined from Go itselfNoSuchElementException
public static GoOs fromPlatform(Platform platform) throws HumanReadableException
platform
- the Platform
to lookupHumanReadableException
- when a specific GoOS is not found for the Platform