Documentation
¶
Overview ¶
Package fallbacks provides functionality for managing tool fallback sources.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Compact ¶ added in v0.1.0
func Compact[T comparable](s []T) []T
Compact removes duplicate elements from a slice while preserving order.
Types ¶
type Fallbacks ¶
Fallbacks represents a collection of fallback sources for the tool. It can either be a single source type or a slice of source types, allowing flexibility in specifying multiple fallback methods if the primary source fails.
func (Fallbacks) Build ¶
Build creates a source type list by prepending the given type to fallbacks.
Click to show internal directories.
Click to hide internal directories.