Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Decoder ¶
Decoder is an adapter allowing to use a function as a decoder.
ByteDecoder represents a byte decoder.
var Int64Decoder Decoder[int64] = func(b []byte) (int64, error) { return strconv.ParseInt(string(b), 10, 64) }
Int64Decoder represents an int64 decoder.
NilDecoder is a decoder that always returns a nil, no matter the input.
StringDecoder ...
Click to show internal directories.
Click to hide internal directories.