Documentation ¶
Overview ¶
Support for different target platforms (Operating Systems and Architectures) supported by the Go compiler
Index ¶
Constants ¶
View Source
const ( AMD64 = "amd64" AMD64P32 = "amd64p32" X86 = "386" ARM = "arm" DARWIN = "darwin" DRAGONFLY = "dragonfly" FREEBSD = "freebsd" LINUX = "linux" NACL = "nacl" NETBSD = "netbsd" OPENBSD = "openbsd" PLAN9 = "plan9" SOLARIS = "solaris" WINDOWS = "windows" )
Variables ¶
View Source
var ( OSES = []string{DARWIN, LINUX, FREEBSD, NETBSD, OPENBSD, PLAN9, WINDOWS, SOLARIS, DRAGONFLY, NACL} ARCHS = []string{X86, AMD64, ARM} SUPPORTED_PLATFORMS_1_0 = []Platform{ Platform{DARWIN, X86}, Platform{DARWIN, AMD64}, Platform{LINUX, X86}, Platform{LINUX, AMD64}, Platform{LINUX, ARM}, Platform{FREEBSD, X86}, Platform{FREEBSD, AMD64}, Platform{OPENBSD, X86}, Platform{OPENBSD, AMD64}, Platform{WINDOWS, X86}, Platform{WINDOWS, AMD64}} NEW_PLATFORMS_1_1 = []Platform{ Platform{FREEBSD, ARM}, Platform{NETBSD, X86}, Platform{NETBSD, AMD64}, Platform{NETBSD, ARM}, Platform{PLAN9, X86}} NEW_PLATFORMS_1_3 = []Platform{ Platform{DRAGONFLY, X86}, Platform{DRAGONFLY, AMD64}, Platform{NACL, X86}, Platform{NACL, AMD64P32}, Platform{SOLARIS, AMD64}} NEW_PLATFORMS_1_4 = []Platform{ Platform{NACL, ARM}, } SUPPORTED_PLATFORMS_1_1 = append(append([]Platform{}, SUPPORTED_PLATFORMS_1_0...), NEW_PLATFORMS_1_1...) SUPPORTED_PLATFORMS_1_3 = append(SUPPORTED_PLATFORMS_1_1, NEW_PLATFORMS_1_3...) SUPPORTED_PLATFORMS_1_4 = append(SUPPORTED_PLATFORMS_1_3, NEW_PLATFORMS_1_4...) )
Functions ¶
func ContainsPlatform ¶
Types ¶
type Platform ¶
represents a target compilation platform
func ApplyBuildConstraints ¶
parse and filter list of platforms
func GetDestPlatforms ¶
interpret list of destination platforms (based on os & arch settings) 0.5 add support for space delimiters (similar to BuildConstraints) 0.5 add support for different oses/services
Click to show internal directories.
Click to hide internal directories.