type Decoder struct {
KeyMarshal func(interface{}) ([]byte, error)
// If set, NaN, Inf, etc. are replaced by the set values NaN, PosInf, NegInf interface{}
KeyNaN, KeyPosInf, KeyNegInf interface{}
}
type Encoder struct {
KeyUnmarshal func([]byte, interface{}) error// If set, the set values will be converted to NaN, Inf, etc. NaN, PosInf, NegInf interface{}
KeyNaN, KeyPosInf, KeyNegInf interface{}
}