osconfig

package
v1.0.0-beta.12 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

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

	AMD64 = "amd64"
	ARM64 = "arm64"
)

Variables

View Source
var (
	AMD64Architectures = []string{"amd64", "x86_64", "64bit", "x64", "x86", "64-bit", "x86-64"}
	ARM64Architectures = []string{"arm64", "aarch64", "armv8-a", "arm64-bit"}
)

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) 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