Versions in this module Expand all Collapse all v0 v0.3.1 Aug 21, 2021 Changes in this version + var DefaultEncOpts = NewEncOpts(5, 5, 2048, 4086) + func HTMLEscape(dst *bytes.Buffer, src []byte) + func Marshal(v interface{}, encOptList ...*encOpts) ([]byte, error) + func MarshalIndent(v interface{}, prefix, indent string) ([]byte, error) + func MarshalString(v interface{}, encOptList ...*encOpts) (string, error) + func MarshalStringIgnoreError(v interface{}, encOptList ...*encOpts) string + func NewEncOpts(sliceMaxLength, mapMaxLength, stringMaxLength, maxReturnLength int) *encOpts + type Marshaler interface + MarshalJSON func() ([]byte, error) + type MarshalerError struct + Err error + Type reflect.Type + func (e *MarshalerError) Error() string + func (e *MarshalerError) Unwrap() error + type Number string + type UnsupportedTypeError struct + Type reflect.Type + func (e *UnsupportedTypeError) Error() string + type UnsupportedValueError struct + Str string + Value reflect.Value + func (e *UnsupportedValueError) Error() string