Help us shape the future of Go! Take the 2026 Go Developer Survey

system

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: May 2, 2021 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OsWindows = "windows"
	OsDarwin  = "darwin"
	OsLinux   = "linux"
)

Variables

View Source
var GetGoosFuncOverwrite func() string

Functions

This section is empty.

Types

type Arch

type Arch string

Arch The Processor Architecture the CLI is running at

const (

	// Darwin
	Darwin Arch = OsDarwin

	// Linux
	Linux Arch = OsLinux

	// Windows
	Windows Arch = OsWindows

	// DarwinX64 amd64
	DarwinX64 Arch = "darwinx64"
	// LinuxX64
	LinuxX64 Arch = "linuxx64"
	// LinuxArm32
	LinuxArm32 Arch = "linuxarm32"
)

func GetCurrent

func GetCurrent() Arch

func (*Arch) IsDarwin

func (a *Arch) IsDarwin() bool

func (*Arch) IsLinux

func (a *Arch) IsLinux() bool

func (*Arch) IsOfFamily

func (a *Arch) IsOfFamily(family Arch) bool

func (*Arch) IsWindows

func (a *Arch) IsWindows() bool

func (*Arch) String

func (a *Arch) String() string

String formats Arch to string

Jump to

Keyboard shortcuts

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