stringstringmap

package
v0.0.0-...-2658d01 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrSkipOverride = fmt.Errorf("skip this override")

Functions

func Marshal

func Marshal(v interface{}) (map[string]string, error)

func Unmarshal

func Unmarshal(m map[string]string, v interface{}) error

Types

type Decoder

type Decoder struct {
	OverrideDecode func(s string, v interface{}, field reflect.StructField) error
	Omitempty      bool
}

func (Decoder) Decode

func (d Decoder) Decode(m map[string]string, v interface{}) error

type Encoder

type Encoder struct {
	OverrideEncode func(v interface{}, field reflect.StructField) (string, error)
	Omitempty      bool
}

func (Encoder) Encode

func (e Encoder) Encode(v interface{}) (map[string]string, error)

Jump to

Keyboard shortcuts

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