osconfig

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2025 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Windows = "windows"
	Linux   = "linux"
	Darwin  = "darwin"
	FreeBSD = "freebsd"

	AMD64 = "amd64"
	ARM64 = "arm64"
	ARM32 = "arm32" // note: there is no such thing as arm32, but this is just to standardize the naming
	AMD32 = "amd32" // note: there is no such thing as amd32, but this is just to standardize the naming
)

Variables

View Source
var (
	AMD64Architectures = []string{"amd64", "x86_64", "x86-64", "64bit", "x64", "64-bit"}
	ARM64Architectures = []string{"arm64", "aarch64", "armv8-a", "arm64-bit"}
	X86Architectures   = []string{"x86", "i686", "i386"}
	ARM32Architectures = []string{"armv7", "armv6", "armv5", "armv4"}
)

Functions

This section is empty.

Types

type OS

type OS struct {
	Name          string
	Arch          string
	Aliases       []string
	Architectures []string
	Extensions    []string
}

func New

func New(os, arch string) *OS

func (*OS) GetAliases added in v1.0.3

func (o *OS) GetAliases() []string

func (*OS) GetArchitecture

func (o *OS) GetArchitecture() string

func (*OS) GetArchitectures

func (o *OS) GetArchitectures() []string

func (*OS) GetExtensions

func (o *OS) GetExtensions() []string

func (*OS) GetOS

func (o *OS) GetOS() []string

func (*OS) InvalidArchitectures

func (o *OS) InvalidArchitectures() []string

func (*OS) InvalidOS

func (o *OS) InvalidOS() []string

Jump to

Keyboard shortcuts

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