Help us shape the future of Go! Take the 2026 Go Developer Survey

platformutil

package
v0.38.1 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2026 License: Apache-2.0 Imports: 3 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Dedupe

func Dedupe(in []ocispecs.Platform) []ocispecs.Platform

func Format

func Format(in []ocispecs.Platform) []string

func FormatInGroups added in v0.4.0

func FormatInGroups(gg ...[]ocispecs.Platform) []string

func Key added in v0.37.0

func Key(p ocispecs.Platform) string

Key returns the canonical string identifying a platform. Unlike platforms.Format it keeps the OS version and OS features so that Windows platforms from different releases do not collapse into each other.

func Parse

func Parse(platformsStr []string) ([]ocispecs.Platform, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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