package
Version:
v0.0.0-...-3e624d3
Opens a new window with list of versions in this module.
Published: Feb 17, 2023
License: MIT
Opens a new window with license information.
Imports: 18
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Generate code for type initializers in the context of the resolved container.
type Container struct {
}
Container is a generic dependency container.
NewContainer creates an empty container.
func (c *Container) Get(typ interface{}) interface{}
Get returns a built dependency by type.
Range over the container items in dependency order.
func (c *Container) Register(provider interface{})
Register registers a provider function for a type.
type Item struct {
Value interface{}
}
An Item is a container item.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.