Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Factory ¶
type Factory[T any] struct { // contains filtered or unexported fields }
func New ¶
New creates a factory which stores and instantiates objects of the specified interface type. A "dummy" version needs to be passed to avoid Go's error checking mechanism from being triggered.
func (*Factory[T]) Instantiate ¶
Instantiate is a factory function which instantiates an instance of an object with autodiscovery.
Click to show internal directories.
Click to hide internal directories.