Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Helper ¶
type Helper interface { Marshal(v interface{}) ([]byte, error) Unmarshal(data []byte, v interface{}) error }
Helper is an interface for JSON helper.
type JSON ¶
type JSON struct {
// contains filtered or unexported fields
}
JSON is a wrapper for JSON helper.
type NativeJSON ¶
type NativeJSON struct{}
NativeJSON is a wrapper for encoding/json.
func (*NativeJSON) Marshal ¶
func (*NativeJSON) Marshal(v interface{}) ([]byte, error)
Marshal marshals the given value to JSON.
func (*NativeJSON) Unmarshal ¶
func (*NativeJSON) Unmarshal(data []byte, v interface{}) error
Unmarshal unmarshals the given JSON to the given value.
Click to show internal directories.
Click to hide internal directories.