decoder

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Decode

type Decode interface {
	Decode(value string) error
}

type DecodeBuilderFunc

type DecodeBuilderFunc func(v any, value string) error

type Decoder

type Decoder struct {
	Decoders map[any]DecodeBuilderFunc
}

func New

func New() *Decoder

func (*Decoder) ToDecoder

func (r *Decoder) ToDecoder(rv reflect.Value) Decode

Jump to

Keyboard shortcuts

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