resolve

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: May 30, 2024 License: MIT Imports: 8 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var IPrepareType = reflect.TypeOf((*IPrepare)(nil)).Elem()
View Source
var IResolveType = reflect.TypeOf((*IResolve)(nil)).Elem()

Functions

func Invoke added in v0.1.0

func Invoke(src any, opts ...Option) (any, error)

func Object added in v0.2.3

func Object(dst, src any, opts ...Option) error

Types

type IPrepare added in v0.4.0

type IPrepare interface{ Prepare() error }

IPrepare custom prepare interface for an object

type IResolve added in v0.1.0

type IResolve interface {
	Resolve(src any, def func() error) error
}

IResolve custom resolve interface for an object

type Option added in v0.1.0

type Option func(ctx context.Context) context.Context

func WithObjectKey added in v0.2.0

func WithObjectKey(key string) Option

func WithStructFieldNameCompatibility added in v0.2.0

func WithStructFieldNameCompatibility(enable bool) 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