Documentation
¶
Index ¶
- func Marshal(data interface{}) ([]byte, error)
- func NewEncoder(opts ...Option) *encoder
- func NewParser(opts ...Option) *parser
- func SetGlobalUrlEncoder(u UrlEncoder)
- func Unmarshal(data []byte, v interface{}) error
- type ErrInvalidMapKeyType
- type ErrInvalidMapValueType
- type ErrInvalidUnmarshalError
- type ErrTranslated
- type ErrUnhandledType
- type ErrUnsupportedBitSize
- type NeedEmptyValueOption
- type Option
- type UrlEncoder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewEncoder ¶
func NewEncoder(opts ...Option) *encoder
func SetGlobalUrlEncoder ¶
func SetGlobalUrlEncoder(u UrlEncoder)
Types ¶
type ErrInvalidMapKeyType ¶
type ErrInvalidMapKeyType struct {
// contains filtered or unexported fields
}
func (ErrInvalidMapKeyType) Error ¶
func (e ErrInvalidMapKeyType) Error() string
type ErrInvalidMapValueType ¶
type ErrInvalidMapValueType struct {
// contains filtered or unexported fields
}
func (ErrInvalidMapValueType) Error ¶
func (e ErrInvalidMapValueType) Error() string
type ErrInvalidUnmarshalError ¶
type ErrInvalidUnmarshalError struct {
// contains filtered or unexported fields
}
func (ErrInvalidUnmarshalError) Error ¶
func (e ErrInvalidUnmarshalError) Error() string
type ErrTranslated ¶
type ErrTranslated struct {
// contains filtered or unexported fields
}
func (ErrTranslated) Error ¶
func (e ErrTranslated) Error() string
type ErrUnhandledType ¶
type ErrUnhandledType struct {
// contains filtered or unexported fields
}
func (ErrUnhandledType) Error ¶
func (e ErrUnhandledType) Error() string
type ErrUnsupportedBitSize ¶
type ErrUnsupportedBitSize struct {
// contains filtered or unexported fields
}
func (ErrUnsupportedBitSize) Error ¶
func (e ErrUnsupportedBitSize) Error() string
type NeedEmptyValueOption ¶
type NeedEmptyValueOption bool
type Option ¶
type Option interface {
// contains filtered or unexported methods
}
func WithNeedEmptyValue ¶
support to control whether to ignore empty value. It just happen to the element directly in strcut, not include map slice array
Source Files
¶
Click to show internal directories.
Click to hide internal directories.