Documentation ¶ Index ¶ Variables func Inject(dst, src any, opts ...Option) error func Invoke(src any, opts ...Option) (any, error) type Field type IResolve type Option func WithObjKey(key string) Option func WithTagKey(key string) Option Constants ¶ This section is empty. Variables ¶ View Source var IResolveType = reflect.TypeOf((*IResolve)(nil)).Elem() Functions ¶ func Inject ¶ added in v0.1.0 func Inject(dst, src any, opts ...Option) error func Invoke ¶ added in v0.1.0 func Invoke(src any, opts ...Option) (any, error) Types ¶ type Field ¶ added in v0.1.0 type Field struct { Index int Type reflect.Type Name string Inline bool InlineTypeValid bool } type IResolve ¶ added in v0.1.0 type IResolve interface{ Resolve(src any) error } IResolve custom resolve interface for an object type Option ¶ added in v0.1.0 type Option func(ctx context.Context) context.Context func WithObjKey ¶ added in v0.1.1 func WithObjKey(key string) Option func WithTagKey ¶ added in v0.1.1 func WithTagKey(key string) Option Source Files ¶ View all Source files basic.go context.go inject.go invoke.go resolve.go struct.go Click to show internal directories. Click to hide internal directories.