Documentation
¶
Overview ¶
Package registry provides support for various forms of registry useful for building command line tools.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrUnknownKey = errors.New("unregistered key")
ErrUnknownKey is returned when an unregistered key is encountered.
Functions ¶
func ConvertAnyArgs ¶
ConvertAnyArgs converts a variadic list of any to a slice of the specified type T, ignoring any arguments that are not of type T.
Types ¶
type T ¶
type T[T any] struct { // contains filtered or unexported fields }
T represents a registry for a specific type T that selected using a string key, which is typically a URI scheme.
func (*T[T]) Get ¶
Get retrieves the factory function for the given key, or nil if the key is not registered.
Click to show internal directories.
Click to hide internal directories.