resolve

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2023 License: MIT Imports: 7 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

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 Struct added in v0.2.2

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

Types

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 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