Documentation ¶
Index ¶
- Variables
- func GetElemKey(element any, options injopts.KeyGenOption) types.BindKey
- func GetElemType[T any](element T) (foundType reflect.Type, isInterface bool)
- func GetKey[T any](options injopts.KeyGenOption) types.BindKey
- func GetType[T any]() (foundType reflect.Type, isInterface bool)
- func TypeNameByReflection[T any](generifyInterface, identifyPointer bool, elements ...T) string
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrAlreadyBound = errors.New("dependency already bound") ErrImpossibleIdentifyType = errors.New("impossible to identify the given type") ErrElementNotRegistered = errors.New("element with given key is not registered") ErrNoElementFoundInsideOrParent = errors.New( "no element found on the given injector or any of it's parents", ) ErrCycleDependencyDetected = errors.New("cycle dependency detected, check for it") ErrOverrideInRuntime = errors.New( "a process tried to override a value during runtime", ) ErrTypeCastInRuntime = errors.New("unable to find/cast the element with given type") ErrFoundMoreThanOneValidDI = errors.New("found more than one element that fits the given type") )
Functions ¶
func GetElemKey ¶
func GetElemKey(element any, options injopts.KeyGenOption) types.BindKey
func TypeNameByReflection ¶ added in v1.8.0
TypeNameByReflection returns a string that defines the name of the given generic type.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.