Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContainsPlatform ¶
Types ¶
type PlatformMap ¶
type PlatformMap[T any] struct { MacOS *T `json:"macos" yaml:"macos"` Linux *T `json:"linux" yaml:"linux"` Windows *T `json:"windows" yaml:"windows"` }
func NewPlatformMap ¶ added in v1.9.0
func NewPlatformMap[T any](values map[string]T) *PlatformMap[T]
func (*PlatformMap[T]) Resolve ¶
func (p *PlatformMap[T]) Resolve() *T
func (*PlatformMap[T]) ResolveWithFallback ¶
func (o *PlatformMap[T]) ResolveWithFallback(fallback PlatformMap[T]) T
Click to show internal directories.
Click to hide internal directories.