runtime

package
v2.36.0 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GOARCHList

func GOARCHList() []string

func GOOSList

func GOOSList() []string

func GOOSMap

func GOOSMap() map[string]struct{}

func IsOS

func IsOS(k string) bool

Types

type Runtime

type Runtime struct {
	GOOS   string
	GOARCH string
}

func GetRuntimes

func GetRuntimes(env string) ([]*Runtime, error)

func GetRuntimesFromEnvs

func GetRuntimesFromEnvs(envs []string) ([]*Runtime, error)

func New

func New() *Runtime

func NewR

func NewR() *Runtime

func (*Runtime) Arch added in v2.34.0

func (rt *Runtime) Arch(rosetta2, windowsARMEmulation bool) string

func (*Runtime) Env

func (rt *Runtime) Env() string

func (*Runtime) IsWindows added in v2.30.0

func (rt *Runtime) IsWindows() bool

Jump to

Keyboard shortcuts

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