Documentation ¶ Index ¶ func Get[T any](ctx context.Context, r Registry[T], name string) (T, error) func MustGet[T any](ctx context.Context, r Registry[T], name string) T func Names[T any](ctx context.Context, r Registry[T]) []string type Registry func New[T any]() Registry[T] Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Get ¶ func Get[T any](ctx context.Context, r Registry[T], name string) (T, error) func MustGet ¶ func MustGet[T any](ctx context.Context, r Registry[T], name string) T func Names ¶ func Names[T any](ctx context.Context, r Registry[T]) []string Types ¶ type Registry ¶ type Registry[T any] interface { Register(name string, f T) Get(name string) (T, bool) Names() []string RegisteredFactories() map[string]T Reset() } func New ¶ func New[T any]() Registry[T] Source Files ¶ View all Source files builder.go Click to show internal directories. Click to hide internal directories.