package
module
Version:
v0.0.0-...-fa3f3c9
Opens a new window with list of versions in this module.
Published: Jun 17, 2021
License: MIT
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 1
Opens a new window with list of known importers.
README
¶
Documentation
¶
Decode implate Decoder interface
func Format(dest, src interface{}) error
Format implate Formater interface
Codec encode/decode interface
type Decoder interface {
Decode([]byte, interface{}) error
}
Decoder decode Bytes to Type
type Encoder interface {
Encode(interface{}) ([]byte, error)
}
Encoder encode Type to Bytes
type Formatter interface {
Format(dest interface{}, src interface{}) error
}
Formatter format v to v
JSON implements Codec and Formatter interface
Decode implate Decoder interface
Encode implate Encoder interface
func (json JSON) Format(dest, src interface{}) error
Format implate Formater interface
StringList stringList
MarshalJSON implement json.Marshaler interface
YAML implements Codec and Formatter interface
Decode implate Decoder interface
Encode implate Encoder interface
func (yaml YAML) Format(dest, src interface{}) error
Format implate Formater interface
Source Files
¶
Click to show internal directories.
Click to hide internal directories.