resolve

package
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 29, 2023 License: MIT Imports: 9 Imported by: 2

Documentation

Index

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL