Documentation ¶
Index ¶
- func Bind(src []byte, t interface{}) error
- func BindFromMap(src map[string]interface{}, t interface{}) error
- func BindFromString(src string, t interface{}) error
- func Dump(t interface{}) []byte
- func DumpMap(t interface{}) map[string]interface{}
- func DumpMapWithoutKeys(t interface{}, without ...string) map[string]interface{}
- func DumpString(t interface{}) string
- func FormatDumpString(t interface{}) string
- func MustBind(src []byte, t interface{})
- func MustBindFromString(src string, t interface{})
- type Encoder
- type JsonString
- type Raw
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DumpMapWithoutKeys ¶
Types ¶
type Encoder ¶
type Encoder struct { }
type JsonString ¶
type JsonString json.RawMessage
func (JsonString) MarshalJSON ¶
func (t JsonString) MarshalJSON() ([]byte, error)
MarshalJSON returns m as the JSON encoding of m.
func (*JsonString) Scan ¶
func (t *JsonString) Scan(value interface{}) error
func (*JsonString) UnmarshalJSON ¶
func (t *JsonString) UnmarshalJSON(data []byte) error
UnmarshalJSON sets *m to a copy of data.
func (JsonString) Value ¶
func (t JsonString) Value() (driver.Value, error)
type Raw ¶
type Raw = json.RawMessage
Click to show internal directories.
Click to hide internal directories.