platform

package
v0.36.0 Latest Latest
Warning

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

Go to latest
Published: May 16, 2023 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const Amd64 = "amd64"

Amd64 architecture

View Source
const Arm64 = "arm64"

Arm64 architecture

View Source
const Darwin = "darwin"

Darwin OS

View Source
const Linux = "linux"

Linux OS

Variables

View Source
var Core = []Platform{
	{Linux, Amd64},
	{Darwin, Amd64},
	{Darwin, Arm64},
}

Core platforms officially supported by Hermit.

For a package to be considered fully compliant, these platforms need to be supported

Functions

func ArchToXArch added in v0.2.22

func ArchToXArch(arch string) string

ArchToXArch maps "arch" to "xarch".

Types

type Platform

type Platform struct {
	// OS is the operating system of the platform
	OS string
	// Arch is the CPU architecture of the platform
	Arch string
}

Platform describes a system where a package can be installed

func (Platform) String

func (p Platform) String() string

Jump to

Keyboard shortcuts

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