Versions in this module Expand all Collapse all v0 v0.7.6 Dec 22, 2021 v0.7.5 Dec 22, 2021 Changes in this version + func Append(dst []byte, v interface{}) ([]byte, error) + func AppendOpts(dst []byte, v interface{}, opts ...Option) ([]byte, error) + func Marshal(v interface{}) ([]byte, error) + func MarshalOpts(v interface{}, opts ...Option) ([]byte, error) + type AppendMarshaler interface + AppendJSON func([]byte) ([]byte, error) + type AppendMarshalerCtx interface + AppendJSONContext func(context.Context, []byte) ([]byte, error) + type DurationFmt int + const DurationMicroseconds + const DurationMilliseconds + const DurationMinutes + const DurationNanoseconds + const DurationSeconds + const DurationString + func (f DurationFmt) String() string + type InvalidOptionError struct + Err error + func (e *InvalidOptionError) Error() string + type MarshalerError struct + Err error + Type reflect.Type + func (e *MarshalerError) Error() string + func (e *MarshalerError) Unwrap() error + type Option func(*encOpts) + func AllowList(fields []string) Option + func ByteArrayAsString() Option + func DenyList(fields []string) Option + func DurationFormat(format DurationFmt) Option + func NilMapEmpty() Option + func NilSliceEmpty() Option + func NoCompact() Option + func NoHTMLEscaping() Option + func NoNumberValidation() Option + func NoStringEscaping() Option + func NoUTF8Coercion() Option + func RawByteSlice() Option + func TimeLayout(layout string) Option + func Timezone(timezone string) Option + func UnixTime() Option + func UnsortedMap() Option + func WithContext(ctx context.Context) Option + type SyntaxError struct + Offset int64 + func (e *SyntaxError) Error() 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