binary

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrOsNotSupported           = errors.New("OS not supported")
	ErrArchitectureNotSupported = errors.New("Architecture not supported")
)

Functions

This section is empty.

Types

type Architecture

type Architecture string
const (
	ARCH_AMD64 Architecture = "amd64"
	ARCH_ARM64 Architecture = "arm64"
)

type OS

type OS string
const (
	OS_LINUX  OS = "linux"
	OS_DARWIN OS = "darwin"
)

type Platform

type Platform struct {
	Architecture Architecture
	OS           OS
}

func GetInfo

func GetInfo(name string) (Platform, error)

func (Platform) String

func (pf Platform) String() string

Jump to

Keyboard shortcuts

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