Documentation ¶
Index ¶
- Variables
- type Reflector
- func (r Reflector) Add(template interface{}) Reflector
- func (r Reflector) AddAs(template interface{}, as string) Reflector
- func (r Reflector) Unmarshal(b []byte) (interface{}, error)
- func (r Reflector) UnmarshalObject(v interface{}) (interface{}, error)
- func (r Reflector) UnmarshalString(s string) (interface{}, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrSkip = errors.New("unpack skip tag can only appear once")
Functions ¶
This section is empty.
Types ¶
type Reflector ¶
func (Reflector) AddAs ¶
AddAs is like Add but as overrides any name stored under the "unpack" key in template's field tags.
func (Reflector) UnmarshalObject ¶
func (Reflector) UnmarshalString ¶
Click to show internal directories.
Click to hide internal directories.