udwPlatform

package
v0.0.0-...-f254aa5 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Index

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 GoosStringIsWindows(goos string) bool

func IsAndroid

func IsAndroid() bool

func IsDarwin

func IsDarwin() bool

func IsDarwinAmd64

func IsDarwinAmd64() bool

func IsIos

func IsIos() bool

func IsLinux

func IsLinux() bool

func IsLinuxAmd64

func IsLinuxAmd64() bool

func IsMac

func IsMac() bool

func IsWindows

func IsWindows() bool

func IsWindows386

func IsWindows386() bool

func IsWindowsAmd64

func IsWindowsAmd64() bool

func UdwOsIsAndroidOrIos

func UdwOsIsAndroidOrIos(udwOs string) bool

func UdwOsIsWindowsOrMac

func UdwOsIsWindowsOrMac(udwOs string) bool

Types

type Platform

type Platform struct {
	Os   string
	Arch string
}

func GetCompiledPlatform

func GetCompiledPlatform() Platform

func (Platform) Compatible

func (p Platform) Compatible(other Platform) bool

func (Platform) GetExeSuffix

func (p Platform) GetExeSuffix() string

func (Platform) String

func (p Platform) String() string

Jump to

Keyboard shortcuts

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