Documentation ¶
Index ¶
- Variables
- func Debug(s string, v ...interface{})
- func Marshal(v interface{}, doc *document.Document) error
- func MarshalWithOptions(v interface{}, doc *document.Document, opts MarshalOptions) error
- func Unmarshal(doc *document.Document, v interface{}) error
- func UnmarshalWithOptions(doc *document.Document, v interface{}, opts UnmarshalOptions) error
- type MarshalOptions
- type UnmarshalOptions
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNeedPointer = errors.New("must unmarshal into pointer type or map")
View Source
var ErrStructOrMap = errors.New("can only decode into struct or map")
Functions ¶
func MarshalWithOptions ¶
func MarshalWithOptions(v interface{}, doc *document.Document, opts MarshalOptions) error
func UnmarshalWithOptions ¶
func UnmarshalWithOptions(doc *document.Document, v interface{}, opts UnmarshalOptions) error
Types ¶
type MarshalOptions ¶
type MarshalOptions struct { }
Click to show internal directories.
Click to hide internal directories.