platform

package
v0.1.32 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SupportedPlatforms = []*Platform{
	{os.Linux, arch.X8664},
	{os.Linux, arch.All},
	{os.Linux, arch.Arm64},
	{os.Darwin, arch.All},
	{os.Darwin, arch.Arm64},
	{os.Darwin, arch.X8664},
	{os.All, arch.All},
}

Functions

This section is empty.

Types

type Platform

type Platform struct {
	OS   os.OS
	Arch arch.Arch
}

func Current

func Current() *Platform

func Expanded

func Expanded(current *Platform) []*Platform

func (*Platform) Equal

func (p *Platform) Equal(pltfrm *Platform) bool

func (*Platform) String

func (p *Platform) String() string

func (*Platform) Supported

func (p *Platform) Supported() bool

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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