Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EncodingJSON ¶
type EncodingJSON struct {
}
EncodingJSON is the json encoding type
func NewEncodingJSON ¶
func NewEncodingJSON() *EncodingJSON
NewEncodingJSON creates a new EncodingJSON instance
func (*EncodingJSON) Marshal ¶
func (e *EncodingJSON) Marshal(v interface{}) ([]byte, error)
Marshal converts the given value to a json byte slice
func (*EncodingJSON) Unmarshal ¶
func (e *EncodingJSON) Unmarshal(b []byte, v interface{}) error
Unmarshal converts the given json byte slice to the given value
func (*EncodingJSON) UnmarshalToMap ¶
func (e *EncodingJSON) UnmarshalToMap(b []byte) (map[string]interface{}, error)
UnmarshalToMap converts the json string to a map
type EncodingJSONIter ¶
type EncodingJSONIter struct {
}
EncodingJSONIter is a json encoding using json-iter
func NewJEncodingJSONIter ¶
func NewJEncodingJSONIter() *EncodingJSONIter
NewJEncodingJSONIter returns a new EncodingJSONIter
func (EncodingJSONIter) Marshal ¶
func (e EncodingJSONIter) Marshal(v interface{}) ([]byte, error)
Marshal returns the EncodingJSON encoding of v
func (EncodingJSONIter) Unmarshal ¶
func (e EncodingJSONIter) Unmarshal(b []byte, v interface{}) error
Unmarshal parses the EncodingJSON-encoded data and stores the result
func (*EncodingJSONIter) UnmarshalToMap ¶
func (e *EncodingJSONIter) UnmarshalToMap(b []byte) (map[string]interface{}, error)
UnmarshalToMap converts the json string to a map
Click to show internal directories.
Click to hide internal directories.