kmgPlatform

package
v0.0.0-...-05317bf Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2015 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

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 IsDarwin

func IsDarwin() bool

func IsLinux

func IsLinux() bool

func IsWindows

func IsWindows() 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