Documentation ¶
Index ¶
- Constants
- Variables
- func GetCurrentUdwOs() string
- func GoosStringIsWindows(goos string) bool
- func IsAndroid() bool
- func IsDarwin() bool
- func IsDarwinAmd64() bool
- func IsIos() bool
- func IsLinux() bool
- func IsLinuxAmd64() bool
- func IsMac() bool
- func IsWindows() bool
- func IsWindows386() bool
- func IsWindowsAmd64() bool
- func UdwOsIsAndroidOrIos(udwOs string) bool
- func UdwOsIsWindowsOrMac(udwOs string) bool
- type Platform
Constants ¶
View Source
const UdwOsAmazon = `amazon`
View Source
const UdwOsAndroid = "android"
View Source
const UdwOsBrowser = "browser"
View Source
const UdwOsChromeExtension = "chromeExtension"
View Source
const UdwOsIos = "ios"
View Source
const UdwOsJs = "js"
View Source
const UdwOsLinux = "linux"
View Source
const UdwOsMac = "mac"
View Source
const UdwOsWeb = "web"
View Source
const UdwOsWindows = "windows"
View Source
const UdwOsWindowsuwp = `windowsuwp`
Variables ¶
View Source
var DarwinAmd64 = Platform{Os: "darwin", Arch: "amd64"}
View Source
var LinuxAmd64 = Platform{Os: "linux", Arch: "amd64"}
View Source
var WindowsAmd64 = Platform{Os: "windows", Arch: "amd64"}
Functions ¶
func GetCurrentUdwOs ¶
func GetCurrentUdwOs() string
func GoosStringIsWindows ¶
func IsDarwinAmd64 ¶
func IsDarwinAmd64() bool
func IsLinuxAmd64 ¶
func IsLinuxAmd64() bool
func IsWindows386 ¶
func IsWindows386() bool
func IsWindowsAmd64 ¶
func IsWindowsAmd64() bool
func UdwOsIsAndroidOrIos ¶
func UdwOsIsWindowsOrMac ¶
Types ¶
type Platform ¶
func GetCompiledPlatform ¶
func GetCompiledPlatform() Platform
func (Platform) Compatible ¶
func (Platform) GetExeSuffix ¶
Click to show internal directories.
Click to hide internal directories.