package
2.0.4
Repository: https://github.com/cpusoft/beego.git
Documentation: pkg.go.dev

# Functions

the mock object must be pointer of struct the element in mock object can be slices, structures, basic data types, pointers and interface.
NewTagAutoWireBeanFactory create an instance of TagAutoWireBeanFactory by default, we register Time adapter, the time will be parse by using layout "2006-01-02 15:04:05" If you need more adapter, you can implement interface TypeAdapter.

# Constants

No description provided by the author

# Structs

BeanMetadata, in other words, bean's config.
FieldMetadata contains metadata.
TagAutoWireBeanFactory wire the bean based on Fields' tag if field's value is "zero value", we will execute injection see reflect.Value.IsZero() If field's kind is one of(reflect.Chan, reflect.Func, reflect.Interface, reflect.Map, reflect.Slice reflect.UnsafePointer, reflect.Array, reflect.Uintptr, reflect.Complex64, reflect.Complex128 reflect.Ptr, reflect.Struct), it will be ignored.
TimeTypeAdapter process the time.Time.

# Interfaces

ApplicationContext define for future when we decide to support DI, IoC, this will be core API.
AutoWireBeanFactory wire the bean based on ApplicationContext and context.Context.
TypeAdapter is an abstraction that define some behavior of target type usually, we don't use this to support basic type since golang has many restriction for basic types This is an important extension point.