platform

package
v0.0.17 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsBigEndian

func IsBigEndian(archFamily ArchFamilyType) bool

Types

type ArchFamilyType

type ArchFamilyType int
const (
	AMD64 ArchFamilyType = iota
	ARM
	ARM64
	I386
	MIPS
	MIPS64
	PPC64
	S390X
	WASM

	UnkownArchFamily
)

func GetArchFamily

func GetArchFamily() ArchFamilyType

type OSFamilyType

type OSFamilyType int
const (
	Linux OSFamilyType = iota
	Android
	Windows
	Darwin
	Solaris
	Plan9
	FreeBSD
	OpenBSD
	NetBSD
	NACL
	AIX
	DragonFly

	UnkownOSFamily
)

func GetOSFamily

func GetOSFamily() OSFamilyType

type PlatformInfo

type PlatformInfo struct {
	OSFamily   OSFamilyType
	OS         string
	ArchFamily ArchFamilyType
	Arch       string
	BigEndian  bool
}

func GetPlatformInfo

func GetPlatformInfo() PlatformInfo

Jump to

Keyboard shortcuts

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