convert

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: May 2, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Converter

type Converter struct {
	// contains filtered or unexported fields
}

func New

func New(opts ...Option) Converter

func (Converter) Convert

func (c Converter) Convert(from, to any) error

type Option

type Option func(*options)

Option configures a Config with specific options.

func WithHook

func WithHook[F, T any, FN func(F) (T, error) | func(F, T) error](hook FN) Option

func WithKeyMapper added in v0.9.0

func WithKeyMapper(keyMap func(string) string) Option

func WithTagName

func WithTagName(tagName string) Option

Jump to

Keyboard shortcuts

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