package
1.2.0
Repository: https://github.com/thinkdata-works/godi.git
Documentation: pkg.go.dev

# Functions

Call takes a function (receiver) with one or more arguments of the abstractions (interfaces).
DisableDebugLogging disables debug logging.
EnableDebugLogging enables debug logging.
Fill takes a struct and resolves the fields with the tag `container:"inject"`.
Get takes a pointer or interface type argument and returns the provided implemenation.
Instance binds an abstraction to concrete for further transient resolves.
NamedGet takes a pointer or interface type argument and a name string and returns the provided implemenation.
NamedInstance binds like the Instance method but for named bindings.
NamedResolve resolves like the Resolve method but for named bindings.
NamedSingleton binds like the Singleton method but for named bindings.
NewInjector creates a new instance of the Injector.
Reset deletes all the existing bindings and empties the container instance.
Resolve takes an abstraction (interface reference) and fills it with the related implementation.
SetErrorHandler sets the global error handler.
SetLogger attaches a custom logger.
Singleton binds an abstraction to concrete for further singleton resolves.

# Constants

No description provided by the author
No description provided by the author

# Variables

GlobalInjector is the global repository of bindings.

# Structs

Injector holds all of the declared bindings.