releasetargets

package
v0.0.0-...-e046750 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2024 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsFirstClass

func IsFirstClass(os, arch string) bool

IsFirstClass reports whether the given port is first class in the upcoming release.

func LatestFirstClassPorts

func LatestFirstClassPorts() map[OSArch]bool

LatestFirstClassPorts returns the first class ports in the upcoming release.

Types

type OSArch

type OSArch struct {
	OS, Arch string
}

func (OSArch) String

func (o OSArch) String() string

type ReleaseTargets

type ReleaseTargets map[string]*Target

ReleaseTargets maps a target name (usually but not always $GOOS-$GOARCH) to its target.

func TargetsForGo1Point

func TargetsForGo1Point(x int) ReleaseTargets

TargetsForGo1Point returns the ReleaseTargets that apply to the given version.

func TargetsForVersion

func TargetsForVersion(versionStr string) (ReleaseTargets, bool)

TargetsForVersion returns the ReleaseTargets for a given Go version string, e.g. go1.18.1.

func (ReleaseTargets) FirstClassPorts

func (rt ReleaseTargets) FirstClassPorts() map[OSArch]bool

type Target

type Target struct {
	Name         string
	GOOS, GOARCH string
	SecondClass  bool     // A port that is not a first class port. See go.dev/wiki/PortingPolicy#first-class-ports.
	ExtraEnv     []string // Extra environment variables set during toolchain build.

	// For Darwin targets, the minimum targeted version, e.g. 10.13 or 13.
	MinMacOSVersion string
}

Jump to

Keyboard shortcuts

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