package releasetargets
import "golang.org/x/build/internal/releasetargets"
Index ¶
- func IsFirstClass(os, arch string) bool
- func LatestFirstClassPorts() map[OSArch]bool
- type OSArch
- type ReleaseTargets
- func TargetsForGo1Point(x int) ReleaseTargets
- func TargetsForVersion(versionStr string) (ReleaseTargets, bool)
- func (rt ReleaseTargets) FirstClassPorts() map[OSArch]bool
- type Target
Functions ¶
func IsFirstClass ¶
IsFirstClass reports whether the given port is first class in the upcoming release.
func LatestFirstClassPorts ¶
LatestFirstClassPorts returns the first class ports in the upcoming release.
Types ¶
type OSArch ¶
type OSArch struct { OS, Arch string }
func (OSArch) String ¶
type ReleaseTargets ¶
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 }
Source Files ¶
releasetargets.go
- Version
- v0.0.0-20250421191922-3619c213cff3 (latest)
- Published
- Apr 21, 2025
- Platform
- linux/amd64
- Imports
- 8 packages
- Last checked
- 3 months ago –
Tools for package owners.