Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Container ¶
func Container() dixinternal.Container
Container returns the global container instance
func Get ¶
func Get[T any](opts ...dixinternal.Option) T
Get retrieves an instance of the specified type
func Inject ¶
func Inject[T any](target T, opts ...dixinternal.Option) T
Inject injects objects
target: <*struct> or <func>
func MustGet ¶
func MustGet[T any](opts ...dixinternal.Option) T
MustGet retrieves an instance of the specified type, panics on error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.