jsonencoder

package
v0.0.0-...-5b10fbc Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 27, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppendListBool

func AppendListBool(enc *Encoder, jsonKey string, val []bool, omitempty, quote bool)

AppendListBool append an JSON key with list of bool to JSON contents.

func AppendListBytes

func AppendListBytes(enc *Encoder, jsonKey string, val [][]byte, omitempty bool) error

AppendListBytes append an JSON key with list of bytes to JSON contents.

func AppendListEnumNum

func AppendListEnumNum[T protoreflect.Enum](enc *Encoder, jsonKey string, val []T, omitempty, quote bool)

AppendListEnumNum append an JSON key with list of proto ENUM to JSON contents.

func AppendListEnumStr

func AppendListEnumStr[T protoreflect.Enum](enc *Encoder, jsonKey string, val []T, omitempty bool)

AppendListEnumStr append an JSON key with list of proto ENUM to JSON contents.

func AppendListF32

func AppendListF32(enc *Encoder, jsonKey string, val []float32, omitempty, quote bool)

AppendListF32 append an JSON key with list of float32 to JSON contents.

func AppendListF64

func AppendListF64(enc *Encoder, jsonKey string, val []float64, omitempty, quote bool)

AppendListF64 append an JSON key with list of float64 to JSON contents.

func AppendListI32

func AppendListI32(enc *Encoder, jsonKey string, val []int32, omitempty, quote bool)

AppendListI32 append an JSON key with list of int32 to JSON contents.

func AppendListI64

func AppendListI64(enc *Encoder, jsonKey string, val []int64, omitempty, quote bool)

AppendListI64 append an JSON key with list of int64 to JSON contents.

func AppendListMessage

func AppendListMessage[T protoreflect.ProtoMessage](enc *Encoder, jsonKey string, val []T, omitempty bool) error

AppendListMessage append an JSON key with list of proto MESSAGE to JSON contents.

func AppendListStr

func AppendListStr(enc *Encoder, jsonKey string, val []string, omitempty bool)

AppendListStr append an JSON key with list of string to JSON contents.

func AppendListU32

func AppendListU32(enc *Encoder, jsonKey string, val []uint32, omitempty, quote bool)

AppendListU32 append an JSON key with list of uint32 to JSON contents.

func AppendListU64

func AppendListU64(enc *Encoder, jsonKey string, val []uint64, omitempty, quote bool)

AppendListU64 append an JSON key with list of uint64 to JSON contents.

func AppendListWKTAnyObject

func AppendListWKTAnyObject(enc *Encoder, jsonKey string, val []*anypb.Any, omitempty bool) error

AppendListWKTAnyObject append an JSON key with list of WKT any to JSON contents.

func AppendListWKTAnyProto

func AppendListWKTAnyProto(enc *Encoder, jsonKey string, val []*anypb.Any, omitempty bool) error

AppendListWKTAnyProto append an JSON key with list of WKT any to JSON contents.

func AppendListWKTDurHour

func AppendListWKTDurHour(enc *Encoder, jsonKey string, val []*durationpb.Duration, omitempty, quote bool)

AppendListWKTDurHour append an JSON key with list of WKT duration to JSON contents.

func AppendListWKTDurMicro

func AppendListWKTDurMicro(enc *Encoder, jsonKey string, val []*durationpb.Duration, omitempty, quote bool)

AppendListWKTDurMicro append an JSON key with list of WKT duration to JSON contents.

func AppendListWKTDurMilli

func AppendListWKTDurMilli(enc *Encoder, jsonKey string, val []*durationpb.Duration, omitempty, quote bool)

AppendListWKTDurMilli append an JSON key with list of WKT duration to JSON contents.

func AppendListWKTDurMinute

func AppendListWKTDurMinute(enc *Encoder, jsonKey string, val []*durationpb.Duration, omitempty, quote bool)

AppendListWKTDurMinute append an JSON key with list of WKT duration to JSON contents.

func AppendListWKTDurNano

func AppendListWKTDurNano(enc *Encoder, jsonKey string, val []*durationpb.Duration, omitempty, quote bool)

AppendListWKTDurNano append an JSON key with list of WKT duration to JSON contents.

func AppendListWKTDurObject

func AppendListWKTDurObject(enc *Encoder, jsonKey string, val []*durationpb.Duration, omitempty bool) error

AppendListWKTDurObject append an JSON key with list of WKT duration to JSON contents.

func AppendListWKTDurSecond

func AppendListWKTDurSecond(enc *Encoder, jsonKey string, val []*durationpb.Duration, omitempty, quote bool)

AppendListWKTDurSecond append an JSON key with list of WKT duration to JSON contents.

func AppendListWKTDurTimeStr

func AppendListWKTDurTimeStr(enc *Encoder, jsonKey string, val []*durationpb.Duration, omitempty bool)

AppendListWKTDurTimeStr append an JSON key with list of WKT duration to JSON contents.

func AppendListWKTTsLayout

func AppendListWKTTsLayout(enc *Encoder, jsonKey string, val []*timestamppb.Timestamp, omitempty bool, layout string)

AppendListWKTTsLayout append an JSON key with list of WKT timestamp to JSON contents.

func AppendListWKTTsObject

func AppendListWKTTsObject(enc *Encoder, jsonKey string, val []*timestamppb.Timestamp, omitempty bool) error

AppendListWKTTsObject append an JSON key with list of WKT timestamp to JSON contents.

func AppendListWKTTsUnixMicro

func AppendListWKTTsUnixMicro(enc *Encoder, jsonKey string, val []*timestamppb.Timestamp, omitempty, quote bool)

AppendListWKTTsUnixMicro append an JSON key with list of WKT timestamp to JSON contents.

func AppendListWKTTsUnixMilli

func AppendListWKTTsUnixMilli(enc *Encoder, jsonKey string, val []*timestamppb.Timestamp, omitempty, quote bool)

AppendListWKTTsUnixMilli append an JSON key with list of WKT timestamp to JSON contents.

func AppendListWKTTsUnixNano

func AppendListWKTTsUnixNano(enc *Encoder, jsonKey string, val []*timestamppb.Timestamp, omitempty, quote bool)

AppendListWKTTsUnixNano append an JSON key with list of WKT timestamp to JSON contents.

func AppendListWKTTsUnixSec

func AppendListWKTTsUnixSec(enc *Encoder, jsonKey string, val []*timestamppb.Timestamp, omitempty, quote bool)

AppendListWKTTsUnixSec append an JSON key with list of WKT timestamp to JSON contents.

func AppendMapBoolBool

func AppendMapBoolBool(enc *Encoder, jsonKey string, val map[bool]bool, omitempty, quoteKey, quoteVal bool)

AppendMapBoolBool append an JSON key map of key int32 and value bool to JSON contents.

func AppendMapBoolBytes

func AppendMapBoolBytes(enc *Encoder, jsonKey string, val map[bool][]byte, omitempty, quoteKey bool) error

AppendMapBoolBytes append an JSON key map of key int32 and value bytes to JSON contents.

func AppendMapBoolEnumNum

func AppendMapBoolEnumNum[T protoreflect.Enum](enc *Encoder, jsonKey string, val map[bool]T, omitempty, quoteKey, quoteVal bool)

AppendMapBoolEnumNum append an JSON key map of key int32 and value proto ENUM to JSON contents.

func AppendMapBoolEnumStr

func AppendMapBoolEnumStr[T protoreflect.Enum](enc *Encoder, jsonKey string, val map[bool]T, omitempty, quoteKey bool)

AppendMapBoolEnumStr append an JSON key map of key int32 and value proto ENUM to JSON contents.

func AppendMapBoolF32

func AppendMapBoolF32(enc *Encoder, jsonKey string, val map[bool]float32, omitempty, quoteKey, quoteVal bool)

AppendMapBoolF32 append an JSON key map of key int32 and value float32 to JSON contents.

func AppendMapBoolF64

func AppendMapBoolF64(enc *Encoder, jsonKey string, val map[bool]float64, omitempty, quoteKey, quoteVal bool)

AppendMapBoolF64 append an JSON key map of key int32 and value float64 to JSON contents.

func AppendMapBoolI32

func AppendMapBoolI32(enc *Encoder, jsonKey string, val map[bool]int32, omitempty, quoteKey, quoteVal bool)

AppendMapBoolI32 append an JSON key map of key int32 and value int32 to JSON contents.

func AppendMapBoolI64

func AppendMapBoolI64(enc *Encoder, jsonKey string, val map[bool]int64, omitempty, quoteKey, quoteVal bool)

AppendMapBoolI64 append an JSON key map of key int32 and value int64 to JSON contents.

func AppendMapBoolMessage

func AppendMapBoolMessage[T protoreflect.ProtoMessage](enc *Encoder, jsonKey string, val map[bool]T, omitempty, quoteKey bool) error

AppendMapBoolMessage append an JSON key map of key int32 and value proto MESSAGE to JSON contents.

func AppendMapBoolStr

func AppendMapBoolStr(enc *Encoder, jsonKey string, val map[bool]string, omitempty, quoteKey bool)

AppendMapBoolStr append an JSON key map of key int32 and value string to JSON contents.

func AppendMapBoolU32

func AppendMapBoolU32(enc *Encoder, jsonKey string, val map[bool]uint32, omitempty, quoteKey, quoteVal bool)

AppendMapBoolU32 append an JSON key map of key int32 and value uint32 to JSON contents.

func AppendMapBoolU64

func AppendMapBoolU64(enc *Encoder, jsonKey string, val map[bool]uint64, omitempty, quoteKey, quoteVal bool)

AppendMapBoolU64 append an JSON key map of key int32 and value uint64 to JSON contents.

func AppendMapBoolWKTAnyObject

func AppendMapBoolWKTAnyObject(enc *Encoder, jsonKey string, val map[bool]*anypb.Any, omitempty, quoteKey bool) error

AppendMapBoolWKTAnyObject append an JSON key map of key int32 and value WKT any to JSON contents.

func AppendMapBoolWKTAnyProto

func AppendMapBoolWKTAnyProto(enc *Encoder, jsonKey string, val map[bool]*anypb.Any, omitempty, quoteKey bool) error

AppendMapBoolWKTAnyProto append an JSON key map of key int32 and value WKT any to JSON contents.

func AppendMapBoolWKTDurHour

func AppendMapBoolWKTDurHour(enc *Encoder, jsonKey string, val map[bool]*durationpb.Duration, omitempty, quoteKey, quoteVal bool)

AppendMapBoolWKTDurHour append an JSON key map of key int32 and value WKT duration to JSON contents.

func AppendMapBoolWKTDurMicro

func AppendMapBoolWKTDurMicro(enc *Encoder, jsonKey string, val map[bool]*durationpb.Duration, omitempty, quoteKey, quoteVal bool)

AppendMapBoolWKTDurMicro append an JSON key map of key int32 and value WKT duration to JSON contents.

func AppendMapBoolWKTDurMilli

func AppendMapBoolWKTDurMilli(enc *Encoder, jsonKey string, val map[bool]*durationpb.Duration, omitempty, quoteKey, quoteVal bool)

AppendMapBoolWKTDurMilli append an JSON key map of key int32 and value WKT duration to JSON contents.

func AppendMapBoolWKTDurMinute

func AppendMapBoolWKTDurMinute(enc *Encoder, jsonKey string, val map[bool]*durationpb.Duration, omitempty, quoteKey, quoteVal bool)

AppendMapBoolWKTDurMinute append an JSON key map of key int32 and value WKT duration to JSON contents.

func AppendMapBoolWKTDurNano

func AppendMapBoolWKTDurNano(enc *Encoder, jsonKey string, val map[bool]*durationpb.Duration, omitempty, quoteKey, quoteVal bool)

AppendMapBoolWKTDurNano append an JSON key map of key int32 and value WKT duration to JSON contents.

func AppendMapBoolWKTDurObject

func AppendMapBoolWKTDurObject(enc *Encoder, jsonKey string, val map[bool]*durationpb.Duration, omitempty, quoteKey bool) error

AppendMapBoolWKTDurObject append an JSON key map of key int32 and value WKT duration to JSON contents.

func AppendMapBoolWKTDurSecond

func AppendMapBoolWKTDurSecond(enc *Encoder, jsonKey string, val map[bool]*durationpb.Duration, omitempty, quoteKey, quoteVal bool)

AppendMapBoolWKTDurSecond append an JSON key map of key int32 and value WKT duration to JSON contents.

func AppendMapBoolWKTDurTimeStr

func AppendMapBoolWKTDurTimeStr(enc *Encoder, jsonKey string, val map[bool]*durationpb.Duration, omitempty, quoteKey bool)

AppendMapBoolWKTDurTimeStr append an JSON key map of key int32 and value WKT duration to JSON contents.

func AppendMapBoolWKTTsLayout

func AppendMapBoolWKTTsLayout(enc *Encoder, jsonKey string, val map[bool]*timestamppb.Timestamp, omitempty, quoteKey bool, layout string)

AppendMapBoolWKTTsLayout append an JSON key map of key int32 and value WKT timestamp to JSON contents.

func AppendMapBoolWKTTsObject

func AppendMapBoolWKTTsObject(enc *Encoder, jsonKey string, val map[bool]*timestamppb.Timestamp, omitempty, quoteKey bool) error

AppendMapBoolWKTTsObject append an JSON key map of key int32 and value WKT timestamp to JSON contents.

func AppendMapBoolWKTTsUnixMicro

func AppendMapBoolWKTTsUnixMicro(enc *Encoder, jsonKey string, val map[bool]*timestamppb.Timestamp, omitempty, quoteKey, quoteVal bool)

AppendMapBoolWKTTsUnixMicro append an JSON key map of key int32 and value WKT timestamp to JSON contents.

func AppendMapBoolWKTTsUnixMilli

func AppendMapBoolWKTTsUnixMilli(enc *Encoder, jsonKey string, val map[bool]*timestamppb.Timestamp, omitempty, quoteKey, quoteVal bool)

AppendMapBoolWKTTsUnixMilli append an JSON key map of key int32 and value WKT timestamp to JSON contents.

func AppendMapBoolWKTTsUnixNano

func AppendMapBoolWKTTsUnixNano(enc *Encoder, jsonKey string, val map[bool]*timestamppb.Timestamp, omitempty, quoteKey, quoteVal bool)

AppendMapBoolWKTTsUnixNano append an JSON key map of key int32 and value WKT timestamp to JSON contents.

func AppendMapBoolWKTTsUnixSec

func AppendMapBoolWKTTsUnixSec(enc *Encoder, jsonKey string, val map[bool]*timestamppb.Timestamp, omitempty, quoteKey, quoteVal bool)

AppendMapBoolWKTTsUnixSec append an JSON key map of key int32 and value WKT timestamp to JSON contents.

func AppendMapI32Bool

func AppendMapI32Bool(enc *Encoder, jsonKey string, val map[int32]bool, omitempty, quoteKey, quoteVal bool)

AppendMapI32Bool append an JSON key map of key int32 and value bool to JSON contents.

func AppendMapI32Bytes

func AppendMapI32Bytes(enc *Encoder, jsonKey string, val map[int32][]byte, omitempty, quoteKey bool) error

AppendMapI32Bytes append an JSON key map of key int32 and value bytes to JSON contents.

func AppendMapI32EnumNum

func AppendMapI32EnumNum[T protoreflect.Enum](enc *Encoder, jsonKey string, val map[int32]T, omitempty, quoteKey, quoteVal bool)

AppendMapI32EnumNum append an JSON key map of key int32 and value proto ENUM to JSON contents.

func AppendMapI32EnumStr

func AppendMapI32EnumStr[T protoreflect.Enum](enc *Encoder, jsonKey string, val map[int32]T, omitempty, quoteKey bool)

AppendMapI32EnumStr append an JSON key map of key int32 and value proto ENUM to JSON contents.

func AppendMapI32F32

func AppendMapI32F32(enc *Encoder, jsonKey string, val map[int32]float32, omitempty, quoteKey, quoteVal bool)

AppendMapI32F32 append an JSON key map of key int32 and value float32 to JSON contents.

func AppendMapI32F64

func AppendMapI32F64(enc *Encoder, jsonKey string, val map[int32]float64, omitempty, quoteKey, quoteVal bool)

AppendMapI32F64 append an JSON key map of key int32 and value float64 to JSON contents.

func AppendMapI32I32

func AppendMapI32I32(enc *Encoder, jsonKey string, val map[int32]int32, omitempty, quoteKey, quoteVal bool)

AppendMapI32I32 append an JSON key map of key int32 and value int32 to JSON contents.

func AppendMapI32I64

func AppendMapI32I64(enc *Encoder, jsonKey string, val map[int32]int64, omitempty, quoteKey, quoteVal bool)

AppendMapI32I64 append an JSON key map of key int32 and value int64 to JSON contents.

func AppendMapI32Message

func AppendMapI32Message[T protoreflect.ProtoMessage](enc *Encoder, jsonKey string, val map[int32]T, omitempty, quoteKey bool) error

AppendMapI32Message append an JSON key map of key int32 and value proto MESSAGE to JSON contents.

func AppendMapI32Str

func AppendMapI32Str(enc *Encoder, jsonKey string, val map[int32]string, omitempty, quoteKey bool)

AppendMapI32Str append an JSON key map of key int32 and value string to JSON contents.

func AppendMapI32U32

func AppendMapI32U32(enc *Encoder, jsonKey string, val map[int32]uint32, omitempty, quoteKey, quoteVal bool)

AppendMapI32U32 append an JSON key map of key int32 and value uint32 to JSON contents.

func AppendMapI32U64

func AppendMapI32U64(enc *Encoder, jsonKey string, val map[int32]uint64, omitempty, quoteKey, quoteVal bool)

AppendMapI32U64 append an JSON key map of key int32 and value uint64 to JSON contents.

func AppendMapI32WKTAnyObject

func AppendMapI32WKTAnyObject(enc *Encoder, jsonKey string, val map[int32]*anypb.Any, omitempty, quoteKey bool) error

AppendMapI32WKTAnyObject append an JSON key map of key int32 and value WKT any to JSON contents.

func AppendMapI32WKTAnyProto

func AppendMapI32WKTAnyProto(enc *Encoder, jsonKey string, val map[int32]*anypb.Any, omitempty, quoteKey bool) error

AppendMapI32WKTAnyProto append an JSON key map of key int32 and value WKT any to JSON contents.

func AppendMapI32WKTDurHour

func AppendMapI32WKTDurHour(enc *Encoder, jsonKey string, val map[int32]*durationpb.Duration, omitempty, quoteKey, quoteVal bool)

AppendMapI32WKTDurHour append an JSON key map of key int32 and value WKT duration to JSON contents.

func AppendMapI32WKTDurMicro

func AppendMapI32WKTDurMicro(enc *Encoder, jsonKey string, val map[int32]*durationpb.Duration, omitempty, quoteKey, quoteVal bool)

AppendMapI32WKTDurMicro append an JSON key map of key int32 and value WKT duration to JSON contents.

func AppendMapI32WKTDurMilli

func AppendMapI32WKTDurMilli(enc *Encoder, jsonKey string, val map[int32]*durationpb.Duration, omitempty, quoteKey, quoteVal bool)

AppendMapI32WKTDurMilli append an JSON key map of key int32 and value WKT duration to JSON contents.

func AppendMapI32WKTDurMinute

func AppendMapI32WKTDurMinute(enc *Encoder, jsonKey string, val map[int32]*durationpb.Duration, omitempty, quoteKey, quoteVal bool)

AppendMapI32WKTDurMinute append an JSON key map of key int32 and value WKT duration to JSON contents.

func AppendMapI32WKTDurNano

func AppendMapI32WKTDurNano(enc *Encoder, jsonKey string, val map[int32]*durationpb.Duration, omitempty, quoteKey, quoteVal bool)

AppendMapI32WKTDurNano append an JSON key map of key int32 and value WKT duration to JSON contents.

func AppendMapI32WKTDurObject

func AppendMapI32WKTDurObject(enc *Encoder, jsonKey string, val map[int32]*durationpb.Duration, omitempty, quoteKey bool) error

AppendMapI32WKTDurObject append an JSON key map of key int32 and value WKT duration to JSON contents.

func AppendMapI32WKTDurSecond

func AppendMapI32WKTDurSecond(enc *Encoder, jsonKey string, val map[int32]*durationpb.Duration, omitempty, quoteKey, quoteVal bool)

AppendMapI32WKTDurSecond append an JSON key map of key int32 and value WKT duration to JSON contents.

func AppendMapI32WKTDurTimeStr

func AppendMapI32WKTDurTimeStr(enc *Encoder, jsonKey string, val map[int32]*durationpb.Duration, omitempty, quoteKey bool)

AppendMapI32WKTDurTimeStr append an JSON key map of key int32 and value WKT duration to JSON contents.

func AppendMapI32WKTTsLayout

func AppendMapI32WKTTsLayout(enc *Encoder, jsonKey string, val map[int32]*timestamppb.Timestamp, omitempty, quoteKey bool, layout string)

AppendMapI32WKTTsLayout append an JSON key map of key int32 and value WKT timestamp to JSON contents.

func AppendMapI32WKTTsObject

func AppendMapI32WKTTsObject(enc *Encoder, jsonKey string, val map[int32]*timestamppb.Timestamp, omitempty, quoteKey bool) error

AppendMapI32WKTTsObject append an JSON key map of key int32 and value WKT timestamp to JSON contents.

func AppendMapI32WKTTsUnixMicro

func AppendMapI32WKTTsUnixMicro(enc *Encoder, jsonKey string, val map[int32]*timestamppb.Timestamp, omitempty, quoteKey, quoteVal bool)

AppendMapI32WKTTsUnixMicro append an JSON key map of key int32 and value WKT timestamp to JSON contents.

func AppendMapI32WKTTsUnixMilli

func AppendMapI32WKTTsUnixMilli(enc *Encoder, jsonKey string, val map[int32]*timestamppb.Timestamp, omitempty, quoteKey, quoteVal bool)

AppendMapI32WKTTsUnixMilli append an JSON key map of key int32 and value WKT timestamp to JSON contents.

func AppendMapI32WKTTsUnixNano

func AppendMapI32WKTTsUnixNano(enc *Encoder, jsonKey string, val map[int32]*timestamppb.Timestamp, omitempty, quoteKey, quoteVal bool)

AppendMapI32WKTTsUnixNano append an JSON key map of key int32 and value WKT timestamp to JSON contents.

func AppendMapI32WKTTsUnixSec

func AppendMapI32WKTTsUnixSec(enc *Encoder, jsonKey string, val map[int32]*timestamppb.Timestamp, omitempty, quoteKey, quoteVal bool)

AppendMapI32WKTTsUnixSec append an JSON key map of key int32 and value WKT timestamp to JSON contents.

func AppendMapI64Bool

func AppendMapI64Bool(enc *Encoder, jsonKey string, val map[int64]bool, omitempty, quoteKey, quoteVal bool)

AppendMapI64Bool append an JSON key map of key int64 and value bool to JSON contents.

func AppendMapI64Bytes

func AppendMapI64Bytes(enc *Encoder, jsonKey string, val map[int64][]byte, omitempty, quoteKey bool) error

AppendMapI64Bytes append an JSON key map of key int64 and value bytes to JSON contents.

func AppendMapI64EnumNum

func AppendMapI64EnumNum[T protoreflect.Enum](enc *Encoder, jsonKey string, val map[int64]T, omitempty, quoteKey, quoteVal bool)

AppendMapI64EnumNum append an JSON key map of key int32 and value proto ENUM to JSON contents.

func AppendMapI64EnumStr

func AppendMapI64EnumStr[T protoreflect.Enum](enc *Encoder, jsonKey string, val map[int64]T, omitempty, quoteKey bool)

AppendMapI64EnumStr append an JSON key map of key int32 and value proto ENUM to JSON contents.

func AppendMapI64F32

func AppendMapI64F32(enc *Encoder, jsonKey string, val map[int64]float32, omitempty, quoteKey, quoteVal bool)

AppendMapI64F32 append an JSON key map of key int64 and value float32 to JSON contents.

func AppendMapI64F64

func AppendMapI64F64(enc *Encoder, jsonKey string, val map[int64]float64, omitempty, quoteKey, quoteVal bool)

AppendMapI64F64 append an JSON key map of key int64 and value float64 to JSON contents.

func AppendMapI64I32

func AppendMapI64I32(enc *Encoder, jsonKey string, val map[int64]int32, omitempty, quoteKey, quoteVal bool)

AppendMapI64I32 append an JSON key map of key int64 and value int32 to JSON contents.

func AppendMapI64I64

func AppendMapI64I64(enc *Encoder, jsonKey string, val map[int64]int64, omitempty, quoteKey, quoteVal bool)

AppendMapI64I64 append an JSON key map of key int64 and value int64 to JSON contents.

func AppendMapI64Message

func AppendMapI64Message[T protoreflect.ProtoMessage](enc *Encoder, jsonKey string, val map[int64]T, omitempty, quoteKey bool) error

AppendMapI64Message append an JSON key map of key int64 and value proto MESSAGE to JSON contents.

func AppendMapI64Str

func AppendMapI64Str(enc *Encoder, jsonKey string, val map[int64]string, omitempty, quoteKey bool)

AppendMapI64Str append an JSON key map of key int64 and value string to JSON contents.

func AppendMapI64U32

func AppendMapI64U32(enc *Encoder, jsonKey string, val map[int64]uint32, omitempty, quoteKey, quoteVal bool)

AppendMapI64U32 append an JSON key map of key int64 and value uint32 to JSON contents.

func AppendMapI64U64

func AppendMapI64U64(enc *Encoder, jsonKey string, val map[int64]uint64, omitempty, quoteKey, quoteVal bool)

AppendMapI64U64 append an JSON key map of key int64 and value uint64 to JSON contents.

func AppendMapI64WKTAnyObject

func AppendMapI64WKTAnyObject(enc *Encoder, jsonKey string, val map[int64]*anypb.Any, omitempty, quoteKey bool) error

AppendMapI64WKTAnyObject append an JSON key map of key int32 and value WKT any to JSON contents.

func AppendMapI64WKTAnyProto

func AppendMapI64WKTAnyProto(enc *Encoder, jsonKey string, val map[int64]*anypb.Any, omitempty, quoteKey bool) error

AppendMapI64WKTAnyProto append an JSON key map of key int32 and value WKT any to JSON contents.

func AppendMapI64WKTDurHour

func AppendMapI64WKTDurHour(enc *Encoder, jsonKey string, val map[int64]*durationpb.Duration, omitempty, quoteKey, quoteVal bool)

AppendMapI64WKTDurHour append an JSON key map of key int32 and value WKT duration to JSON contents.

func AppendMapI64WKTDurMicro

func AppendMapI64WKTDurMicro(enc *Encoder, jsonKey string, val map[int64]*durationpb.Duration, omitempty, quoteKey, quoteVal bool)

AppendMapI64WKTDurMicro append an JSON key map of key int32 and value WKT duration to JSON contents.

func AppendMapI64WKTDurMilli

func AppendMapI64WKTDurMilli(enc *Encoder, jsonKey string, val map[int64]*durationpb.Duration, omitempty, quoteKey, quoteVal bool)

AppendMapI64WKTDurMilli append an JSON key map of key int32 and value WKT duration to JSON contents.

func AppendMapI64WKTDurMinute

func AppendMapI64WKTDurMinute(enc *Encoder, jsonKey string, val map[int64]*durationpb.Duration, omitempty, quoteKey, quoteVal bool)

AppendMapI64WKTDurMinute append an JSON key map of key int32 and value WKT duration to JSON contents.

func AppendMapI64WKTDurNano

func AppendMapI64WKTDurNano(enc *Encoder, jsonKey string, val map[int64]*durationpb.Duration, omitempty, quoteKey, quoteVal bool)

AppendMapI64WKTDurNano append an JSON key map of key int32 and value WKT duration to JSON contents.

func AppendMapI64WKTDurObject

func AppendMapI64WKTDurObject(enc *Encoder, jsonKey string, val map[int64]*durationpb.Duration, omitempty, quoteKey bool) error

AppendMapI64WKTDurObject append an JSON key map of key int32 and value WKT duration to JSON contents.

func AppendMapI64WKTDurSecond

func AppendMapI64WKTDurSecond(enc *Encoder, jsonKey string, val map[int64]*durationpb.Duration, omitempty, quoteKey, quoteVal bool)

AppendMapI64WKTDurSecond append an JSON key map of key int32 and value WKT duration to JSON contents.

func AppendMapI64WKTDurTimeStr

func AppendMapI64WKTDurTimeStr(enc *Encoder, jsonKey string, val map[int64]*durationpb.Duration, omitempty, quoteKey bool)

AppendMapI64WKTDurTimeStr append an JSON key map of key int32 and value WKT duration to JSON contents.

func AppendMapI64WKTTsLayout

func AppendMapI64WKTTsLayout(enc *Encoder, jsonKey string, val map[int64]*timestamppb.Timestamp, omitempty, quoteKey bool, layout string)

AppendMapI64WKTTsLayout append an JSON key map of key int32 and value WKT timestamp to JSON contents.

func AppendMapI64WKTTsObject

func AppendMapI64WKTTsObject(enc *Encoder, jsonKey string, val map[int64]*timestamppb.Timestamp, omitempty, quoteKey bool) error

AppendMapI64WKTTsObject append an JSON key map of key int32 and value WKT timestamp to JSON contents.

func AppendMapI64WKTTsUnixMicro

func AppendMapI64WKTTsUnixMicro(enc *Encoder, jsonKey string, val map[int64]*timestamppb.Timestamp, omitempty, quoteKey, quoteVal bool)

AppendMapI64WKTTsUnixMicro append an JSON key map of key int32 and value WKT timestamp to JSON contents.

func AppendMapI64WKTTsUnixMilli

func AppendMapI64WKTTsUnixMilli(enc *Encoder, jsonKey string, val map[int64]*timestamppb.Timestamp, omitempty, quoteKey, quoteVal bool)

AppendMapI64WKTTsUnixMilli append an JSON key map of key int32 and value WKT timestamp to JSON contents.

func AppendMapI64WKTTsUnixNano

func AppendMapI64WKTTsUnixNano(enc *Encoder, jsonKey string, val map[int64]*timestamppb.Timestamp, omitempty, quoteKey, quoteVal bool)

AppendMapI64WKTTsUnixNano append an JSON key map of key int32 and value WKT timestamp to JSON contents.

func AppendMapI64WKTTsUnixSec

func AppendMapI64WKTTsUnixSec(enc *Encoder, jsonKey string, val map[int64]*timestamppb.Timestamp, omitempty, quoteKey, quoteVal bool)

AppendMapI64WKTTsUnixSec append an JSON key map of key int32 and value WKT timestamp to JSON contents.

func AppendMapStrBool

func AppendMapStrBool(enc *Encoder, jsonKey string, val map[string]bool, omitempty, quoteVal bool)

AppendMapStrBool append an JSON key map of key string and value bool to JSON contents.

func AppendMapStrBytes

func AppendMapStrBytes(enc *Encoder, jsonKey string, val map[string][]byte, omitempty bool) error

AppendMapStrBytes append an JSON key map of key string and value bytes to JSON contents.

func AppendMapStrEnumNum

func AppendMapStrEnumNum[T protoreflect.Enum](enc *Encoder, jsonKey string, val map[string]T, omitempty, quoteVal bool)

AppendMapStrEnumNum append an JSON key map of key int32 and value proto ENUM to JSON contents.

func AppendMapStrEnumStr

func AppendMapStrEnumStr[T protoreflect.Enum](enc *Encoder, jsonKey string, val map[string]T, omitempty bool)

AppendMapStrEnumStr append an JSON key map of key int32 and value proto ENUM to JSON contents.

func AppendMapStrF32

func AppendMapStrF32(enc *Encoder, jsonKey string, val map[string]float32, omitempty, quoteVal bool)

AppendMapStrF32 append an JSON key map of key string and value float32 to JSON contents.

func AppendMapStrF64

func AppendMapStrF64(enc *Encoder, jsonKey string, val map[string]float64, omitempty, quoteVal bool)

AppendMapStrF64 append an JSON key map of key string and value float64 to JSON contents.

func AppendMapStrI32

func AppendMapStrI32(enc *Encoder, jsonKey string, val map[string]int32, omitempty, quoteVal bool)

AppendMapStrI32 append an JSON key map of key string and value int32 to JSON contents.

func AppendMapStrI64

func AppendMapStrI64(enc *Encoder, jsonKey string, val map[string]int64, omitempty, quoteVal bool)

AppendMapStrI64 append an JSON key map of key string and value int64 to JSON contents.

func AppendMapStrMessage

func AppendMapStrMessage[T protoreflect.ProtoMessage](enc *Encoder, jsonKey string, val map[string]T, omitempty bool) error

AppendMapStrMessage append an JSON key map of key string and value proto MESSAGE to JSON contents.

func AppendMapStrStr

func AppendMapStrStr(enc *Encoder, jsonKey string, val map[string]string, omitempty bool)

AppendMapStrStr append an JSON key map of key string and value string to JSON contents.

func AppendMapStrU32

func AppendMapStrU32(enc *Encoder, jsonKey string, val map[string]uint32, omitempty, quoteVal bool)

AppendMapStrU32 append an JSON key map of key string and value uint32 to JSON contents.

func AppendMapStrU64

func AppendMapStrU64(enc *Encoder, jsonKey string, val map[string]uint64, omitempty, quoteVal bool)

AppendMapStrU64 append an JSON key map of key string and value uint64 to JSON contents.

func AppendMapStrWKTAnyObject

func AppendMapStrWKTAnyObject(enc *Encoder, jsonKey string, val map[string]*anypb.Any, omitempty bool) error

AppendMapStrWKTAnyObject append an JSON key map of key int32 and value WKT any to JSON contents.

func AppendMapStrWKTAnyProto

func AppendMapStrWKTAnyProto(enc *Encoder, jsonKey string, val map[string]*anypb.Any, omitempty bool) error

AppendMapStrWKTAnyProto append an JSON key map of key int32 and value WKT any to JSON contents.

func AppendMapStrWKTDurHour

func AppendMapStrWKTDurHour(enc *Encoder, jsonKey string, val map[string]*durationpb.Duration, omitempty, quoteVal bool)

AppendMapStrWKTDurHour append an JSON key map of key int32 and value WKT duration to JSON contents.

func AppendMapStrWKTDurMicro

func AppendMapStrWKTDurMicro(enc *Encoder, jsonKey string, val map[string]*durationpb.Duration, omitempty, quoteVal bool)

AppendMapStrWKTDurMicro append an JSON key map of key int32 and value WKT duration to JSON contents.

func AppendMapStrWKTDurMilli

func AppendMapStrWKTDurMilli(enc *Encoder, jsonKey string, val map[string]*durationpb.Duration, omitempty, quoteVal bool)

AppendMapStrWKTDurMilli append an JSON key map of key int32 and value WKT duration to JSON contents.

func AppendMapStrWKTDurMinute

func AppendMapStrWKTDurMinute(enc *Encoder, jsonKey string, val map[string]*durationpb.Duration, omitempty, quoteVal bool)

AppendMapStrWKTDurMinute append an JSON key map of key int32 and value WKT duration to JSON contents.

func AppendMapStrWKTDurNano

func AppendMapStrWKTDurNano(enc *Encoder, jsonKey string, val map[string]*durationpb.Duration, omitempty, quoteVal bool)

AppendMapStrWKTDurNano append an JSON key map of key int32 and value WKT duration to JSON contents.

func AppendMapStrWKTDurObject

func AppendMapStrWKTDurObject(enc *Encoder, jsonKey string, val map[string]*durationpb.Duration, omitempty bool) error

AppendMapStrWKTDurObject append an JSON key map of key int32 and value WKT duration to JSON contents.

func AppendMapStrWKTDurSecond

func AppendMapStrWKTDurSecond(enc *Encoder, jsonKey string, val map[string]*durationpb.Duration, omitempty, quoteVal bool)

AppendMapStrWKTDurSecond append an JSON key map of key int32 and value WKT duration to JSON contents.

func AppendMapStrWKTDurTimeStr

func AppendMapStrWKTDurTimeStr(enc *Encoder, jsonKey string, val map[string]*durationpb.Duration, omitempty bool)

AppendMapStrWKTDurTimeStr append an JSON key map of key int32 and value WKT duration to JSON contents.

func AppendMapStrWKTTsLayout

func AppendMapStrWKTTsLayout(enc *Encoder, jsonKey string, val map[string]*timestamppb.Timestamp, omitempty bool, layout string)

AppendMapStrWKTTsLayout append an JSON key map of key int32 and value WKT timestamp to JSON contents.

func AppendMapStrWKTTsObject

func AppendMapStrWKTTsObject(enc *Encoder, jsonKey string, val map[string]*timestamppb.Timestamp, omitempty bool) error

AppendMapStrWKTTsObject append an JSON key map of key int32 and value WKT timestamp to JSON contents.

func AppendMapStrWKTTsUnixMicro

func AppendMapStrWKTTsUnixMicro(enc *Encoder, jsonKey string, val map[string]*timestamppb.Timestamp, omitempty, quoteVal bool)

AppendMapStrWKTTsUnixMicro append an JSON key map of key int32 and value WKT timestamp to JSON contents.

func AppendMapStrWKTTsUnixMilli

func AppendMapStrWKTTsUnixMilli(enc *Encoder, jsonKey string, val map[string]*timestamppb.Timestamp, omitempty, quoteVal bool)

AppendMapStrWKTTsUnixMilli append an JSON key map of key int32 and value WKT timestamp to JSON contents.

func AppendMapStrWKTTsUnixNano

func AppendMapStrWKTTsUnixNano(enc *Encoder, jsonKey string, val map[string]*timestamppb.Timestamp, omitempty, quoteVal bool)

AppendMapStrWKTTsUnixNano append an JSON key map of key int32 and value WKT timestamp to JSON contents.

func AppendMapStrWKTTsUnixSec

func AppendMapStrWKTTsUnixSec(enc *Encoder, jsonKey string, val map[string]*timestamppb.Timestamp, omitempty, quoteVal bool)

AppendMapStrWKTTsUnixSec append an JSON key map of key int32 and value WKT timestamp to JSON contents.

func AppendMapU32Bool

func AppendMapU32Bool(enc *Encoder, jsonKey string, val map[uint32]bool, omitempty, quoteKey, quoteVal bool)

AppendMapU32Bool append an JSON key map of key uint32 and value bool to JSON contents.

func AppendMapU32Bytes

func AppendMapU32Bytes(enc *Encoder, jsonKey string, val map[uint32][]byte, omitempty, quoteKey bool) error

AppendMapU32Bytes append an JSON key map of key uint32 and value bytes to JSON contents.

func AppendMapU32EnumNum

func AppendMapU32EnumNum[T protoreflect.Enum](enc *Encoder, jsonKey string, val map[uint32]T, omitempty, quoteKey, quoteVal bool)

AppendMapU32EnumNum append an JSON key map of key int32 and value proto ENUM to JSON contents.

func AppendMapU32EnumStr

func AppendMapU32EnumStr[T protoreflect.Enum](enc *Encoder, jsonKey string, val map[uint32]T, omitempty, quoteKey bool)

AppendMapU32EnumStr append an JSON key map of key int32 and value proto ENUM to JSON contents.

func AppendMapU32F32

func AppendMapU32F32(enc *Encoder, jsonKey string, val map[uint32]float32, omitempty, quoteKey, quoteVal bool)

AppendMapU32F32 append an JSON key map of key uint32 and value float32 to JSON contents.

func AppendMapU32F64

func AppendMapU32F64(enc *Encoder, jsonKey string, val map[uint32]float64, omitempty, quoteKey, quoteVal bool)

AppendMapU32F64 append an JSON key map of key uint32 and value float64 to JSON contents.

func AppendMapU32I32

func AppendMapU32I32(enc *Encoder, jsonKey string, val map[uint32]int32, omitempty, quoteKey, quoteVal bool)

AppendMapU32I32 append an JSON key map of key uint32 and value int32 to JSON contents.

func AppendMapU32I64

func AppendMapU32I64(enc *Encoder, jsonKey string, val map[uint32]int64, omitempty, quoteKey, quoteVal bool)

AppendMapU32I64 append an JSON key map of key uint32 and value int64 to JSON contents.

func AppendMapU32Message

func AppendMapU32Message[T protoreflect.ProtoMessage](enc *Encoder, jsonKey string, val map[uint32]T, omitempty, quoteKey bool) error

AppendMapU32Message append an JSON key map of key uint32 and value proto MESSAGE to JSON contents.

func AppendMapU32Str

func AppendMapU32Str(enc *Encoder, jsonKey string, val map[uint32]string, omitempty, quoteKey bool)

AppendMapU32Str append an JSON key map of key uint32 and value string to JSON contents.

func AppendMapU32U32

func AppendMapU32U32(enc *Encoder, jsonKey string, val map[uint32]uint32, omitempty, quoteKey, quoteVal bool)

AppendMapU32U32 append an JSON key map of key uint32 and value uint32 to JSON contents.

func AppendMapU32U64

func AppendMapU32U64(enc *Encoder, jsonKey string, val map[uint32]uint64, omitempty, quoteKey, quoteVal bool)

AppendMapU32U64 append an JSON key map of key uint32 and value uint64 to JSON contents.

func AppendMapU32WKTAnyObject

func AppendMapU32WKTAnyObject(enc *Encoder, jsonKey string, val map[uint32]*anypb.Any, omitempty, quoteKey bool) error

AppendMapU32WKTAnyObject append an JSON key map of key int32 and value WKT any to JSON contents.

func AppendMapU32WKTAnyProto

func AppendMapU32WKTAnyProto(enc *Encoder, jsonKey string, val map[uint32]*anypb.Any, omitempty, quoteKey bool) error

AppendMapU32WKTAnyProto append an JSON key map of key int32 and value WKT any to JSON contents.

func AppendMapU32WKTDurHour

func AppendMapU32WKTDurHour(enc *Encoder, jsonKey string, val map[uint32]*durationpb.Duration, omitempty, quoteKey, quoteVal bool)

AppendMapU32WKTDurHour append an JSON key map of key int32 and value WKT duration to JSON contents.

func AppendMapU32WKTDurMicro

func AppendMapU32WKTDurMicro(enc *Encoder, jsonKey string, val map[uint32]*durationpb.Duration, omitempty, quoteKey, quoteVal bool)

AppendMapU32WKTDurMicro append an JSON key map of key int32 and value WKT duration to JSON contents.

func AppendMapU32WKTDurMilli

func AppendMapU32WKTDurMilli(enc *Encoder, jsonKey string, val map[uint32]*durationpb.Duration, omitempty, quoteKey, quoteVal bool)

AppendMapU32WKTDurMilli append an JSON key map of key int32 and value WKT duration to JSON contents.

func AppendMapU32WKTDurMinute

func AppendMapU32WKTDurMinute(enc *Encoder, jsonKey string, val map[uint32]*durationpb.Duration, omitempty, quoteKey, quoteVal bool)

AppendMapU32WKTDurMinute append an JSON key map of key int32 and value WKT duration to JSON contents.

func AppendMapU32WKTDurNano

func AppendMapU32WKTDurNano(enc *Encoder, jsonKey string, val map[uint32]*durationpb.Duration, omitempty, quoteKey, quoteVal bool)

AppendMapU32WKTDurNano append an JSON key map of key int32 and value WKT duration to JSON contents.

func AppendMapU32WKTDurObject

func AppendMapU32WKTDurObject(enc *Encoder, jsonKey string, val map[uint32]*durationpb.Duration, omitempty, quoteKey bool) error

AppendMapU32WKTDurObject append an JSON key map of key int32 and value WKT duration to JSON contents.

func AppendMapU32WKTDurSecond

func AppendMapU32WKTDurSecond(enc *Encoder, jsonKey string, val map[uint32]*durationpb.Duration, omitempty, quoteKey, quoteVal bool)

AppendMapU32WKTDurSecond append an JSON key map of key int32 and value WKT duration to JSON contents.

func AppendMapU32WKTDurTimeStr

func AppendMapU32WKTDurTimeStr(enc *Encoder, jsonKey string, val map[uint32]*durationpb.Duration, omitempty, quoteKey bool)

AppendMapU32WKTDurTimeStr append an JSON key map of key int32 and value WKT duration to JSON contents.

func AppendMapU32WKTTsLayout

func AppendMapU32WKTTsLayout(enc *Encoder, jsonKey string, val map[uint32]*timestamppb.Timestamp, omitempty, quoteKey bool, layout string)

AppendMapU32WKTTsLayout append an JSON key map of key int32 and value WKT timestamp to JSON contents.

func AppendMapU32WKTTsObject

func AppendMapU32WKTTsObject(enc *Encoder, jsonKey string, val map[uint32]*timestamppb.Timestamp, omitempty, quoteKey bool) error

AppendMapU32WKTTsObject append an JSON key map of key int32 and value WKT timestamp to JSON contents.

func AppendMapU32WKTTsUnixMicro

func AppendMapU32WKTTsUnixMicro(enc *Encoder, jsonKey string, val map[uint32]*timestamppb.Timestamp, omitempty, quoteKey, quoteVal bool)

AppendMapU32WKTTsUnixMicro append an JSON key map of key int32 and value WKT timestamp to JSON contents.

func AppendMapU32WKTTsUnixMilli

func AppendMapU32WKTTsUnixMilli(enc *Encoder, jsonKey string, val map[uint32]*timestamppb.Timestamp, omitempty, quoteKey, quoteVal bool)

AppendMapU32WKTTsUnixMilli append an JSON key map of key int32 and value WKT timestamp to JSON contents.

func AppendMapU32WKTTsUnixNano

func AppendMapU32WKTTsUnixNano(enc *Encoder, jsonKey string, val map[uint32]*timestamppb.Timestamp, omitempty, quoteKey, quoteVal bool)

AppendMapU32WKTTsUnixNano append an JSON key map of key int32 and value WKT timestamp to JSON contents.

func AppendMapU32WKTTsUnixSec

func AppendMapU32WKTTsUnixSec(enc *Encoder, jsonKey string, val map[uint32]*timestamppb.Timestamp, omitempty, quoteKey, quoteVal bool)

AppendMapU32WKTTsUnixSec append an JSON key map of key int32 and value WKT timestamp to JSON contents.

func AppendMapU64Bool

func AppendMapU64Bool(enc *Encoder, jsonKey string, val map[uint64]bool, omitempty, quoteKey, quoteVal bool)

AppendMapU64Bool append an JSON key map of key uint64 and value bool to JSON contents.

func AppendMapU64Bytes

func AppendMapU64Bytes(enc *Encoder, jsonKey string, val map[uint64][]byte, omitempty, quoteKey bool) error

AppendMapU64Bytes append an JSON key map of key uint64 and value bytes to JSON contents.

func AppendMapU64EnumNum

func AppendMapU64EnumNum[T protoreflect.Enum](enc *Encoder, jsonKey string, val map[uint64]T, omitempty, quoteKey, quoteVal bool)

AppendMapU64EnumNum append an JSON key map of key int32 and value proto ENUM to JSON contents.

func AppendMapU64EnumStr

func AppendMapU64EnumStr[T protoreflect.Enum](enc *Encoder, jsonKey string, val map[uint64]T, omitempty, quoteKey bool)

AppendMapU64EnumStr append an JSON key map of key int32 and value proto ENUM to JSON contents.

func AppendMapU64F32

func AppendMapU64F32(enc *Encoder, jsonKey string, val map[uint64]float32, omitempty, quoteKey, quoteVal bool)

AppendMapU64F32 append an JSON key map of key uint64 and value float32 to JSON contents.

func AppendMapU64F64

func AppendMapU64F64(enc *Encoder, jsonKey string, val map[uint64]float64, omitempty, quoteKey, quoteVal bool)

AppendMapU64F64 append an JSON key map of key uint64 and value float64 to JSON contents.

func AppendMapU64I32

func AppendMapU64I32(enc *Encoder, jsonKey string, val map[uint64]int32, omitempty, quoteKey, quoteVal bool)

AppendMapU64I32 append an JSON key map of key uint64 and value int32 to JSON contents.

func AppendMapU64I64

func AppendMapU64I64(enc *Encoder, jsonKey string, val map[uint64]int64, omitempty, quoteKey, quoteVal bool)

AppendMapU64I64 append an JSON key map of key uint64 and value int64 to JSON contents.

func AppendMapU64Message

func AppendMapU64Message[T protoreflect.ProtoMessage](enc *Encoder, jsonKey string, val map[uint64]T, omitempty, quoteKey bool) error

AppendMapU64Message append an JSON key map of key uint64 and value proto MESSAGE to JSON contents.

func AppendMapU64Str

func AppendMapU64Str(enc *Encoder, jsonKey string, val map[uint64]string, omitempty, quoteKey bool)

AppendMapU64Str append an JSON key map of key uint64 and value string to JSON contents.

func AppendMapU64U32

func AppendMapU64U32(enc *Encoder, jsonKey string, val map[uint64]uint32, omitempty, quoteKey, quoteVal bool)

AppendMapU64U32 append an JSON key map of key uint64 and value uint32 to JSON contents.

func AppendMapU64U64

func AppendMapU64U64(enc *Encoder, jsonKey string, val map[uint64]uint64, omitempty, quoteKey, quoteVal bool)

AppendMapU64U64 append an JSON key map of key uint64 and value uint64 to JSON contents.

func AppendMapU64WKTAnyObject

func AppendMapU64WKTAnyObject(enc *Encoder, jsonKey string, val map[uint64]*anypb.Any, omitempty, quoteKey bool) error

AppendMapU64WKTAnyObject append an JSON key map of key int32 and value WKT any to JSON contents.

func AppendMapU64WKTAnyProto

func AppendMapU64WKTAnyProto(enc *Encoder, jsonKey string, val map[uint64]*anypb.Any, omitempty, quoteKey bool) error

AppendMapU64WKTAnyProto append an JSON key map of key int32 and value WKT any to JSON contents.

func AppendMapU64WKTDurHour

func AppendMapU64WKTDurHour(enc *Encoder, jsonKey string, val map[uint64]*durationpb.Duration, omitempty, quoteKey, quoteVal bool)

AppendMapU64WKTDurHour append an JSON key map of key int32 and value WKT duration to JSON contents.

func AppendMapU64WKTDurMicro

func AppendMapU64WKTDurMicro(enc *Encoder, jsonKey string, val map[uint64]*durationpb.Duration, omitempty, quoteKey, quoteVal bool)

AppendMapU64WKTDurMicro append an JSON key map of key int32 and value WKT duration to JSON contents.

func AppendMapU64WKTDurMilli

func AppendMapU64WKTDurMilli(enc *Encoder, jsonKey string, val map[uint64]*durationpb.Duration, omitempty, quoteKey, quoteVal bool)

AppendMapU64WKTDurMilli append an JSON key map of key int32 and value WKT duration to JSON contents.

func AppendMapU64WKTDurMinute

func AppendMapU64WKTDurMinute(enc *Encoder, jsonKey string, val map[uint64]*durationpb.Duration, omitempty, quoteKey, quoteVal bool)

AppendMapU64WKTDurMinute append an JSON key map of key int32 and value WKT duration to JSON contents.

func AppendMapU64WKTDurNano

func AppendMapU64WKTDurNano(enc *Encoder, jsonKey string, val map[uint64]*durationpb.Duration, omitempty, quoteKey, quoteVal bool)

AppendMapU64WKTDurNano append an JSON key map of key int32 and value WKT duration to JSON contents.

func AppendMapU64WKTDurObject

func AppendMapU64WKTDurObject(enc *Encoder, jsonKey string, val map[uint64]*durationpb.Duration, omitempty, quoteKey bool) error

AppendMapU64WKTDurObject append an JSON key map of key int32 and value WKT duration to JSON contents.

func AppendMapU64WKTDurSecond

func AppendMapU64WKTDurSecond(enc *Encoder, jsonKey string, val map[uint64]*durationpb.Duration, omitempty, quoteKey, quoteVal bool)

AppendMapU64WKTDurSecond append an JSON key map of key int32 and value WKT duration to JSON contents.

func AppendMapU64WKTDurTimeStr

func AppendMapU64WKTDurTimeStr(enc *Encoder, jsonKey string, val map[uint64]*durationpb.Duration, omitempty, quoteKey bool)

AppendMapU64WKTDurTimeStr append an JSON key map of key int32 and value WKT duration to JSON contents.

func AppendMapU64WKTTsLayout

func AppendMapU64WKTTsLayout(enc *Encoder, jsonKey string, val map[uint64]*timestamppb.Timestamp, omitempty, quoteKey bool, layout string)

AppendMapU64WKTTsLayout append an JSON key map of key int32 and value WKT timestamp to JSON contents.

func AppendMapU64WKTTsObject

func AppendMapU64WKTTsObject(enc *Encoder, jsonKey string, val map[uint64]*timestamppb.Timestamp, omitempty, quoteKey bool) error

AppendMapU64WKTTsObject append an JSON key map of key int32 and value WKT timestamp to JSON contents.

func AppendMapU64WKTTsUnixMicro

func AppendMapU64WKTTsUnixMicro(enc *Encoder, jsonKey string, val map[uint64]*timestamppb.Timestamp, omitempty, quoteKey, quoteVal bool)

AppendMapU64WKTTsUnixMicro append an JSON key map of key int32 and value WKT timestamp to JSON contents.

func AppendMapU64WKTTsUnixMilli

func AppendMapU64WKTTsUnixMilli(enc *Encoder, jsonKey string, val map[uint64]*timestamppb.Timestamp, omitempty, quoteKey, quoteVal bool)

AppendMapU64WKTTsUnixMilli append an JSON key map of key int32 and value WKT timestamp to JSON contents.

func AppendMapU64WKTTsUnixNano

func AppendMapU64WKTTsUnixNano(enc *Encoder, jsonKey string, val map[uint64]*timestamppb.Timestamp, omitempty, quoteKey, quoteVal bool)

AppendMapU64WKTTsUnixNano append an JSON key map of key int32 and value WKT timestamp to JSON contents.

func AppendMapU64WKTTsUnixSec

func AppendMapU64WKTTsUnixSec(enc *Encoder, jsonKey string, val map[uint64]*timestamppb.Timestamp, omitempty, quoteKey, quoteVal bool)

AppendMapU64WKTTsUnixSec append an JSON key map of key int32 and value WKT timestamp to JSON contents.

func AppendPtrBool

func AppendPtrBool(enc *Encoder, jsonKey string, val *bool, omitempty, quote bool)

AppendPtrBool append an JSON key with pointer of bool to JSON contents.

func AppendPtrEnumNum

func AppendPtrEnumNum[T protoreflect.Enum](enc *Encoder, jsonKey string, val *T, omitempty, quote bool)

AppendPtrEnumNum append an JSON key with value of proto enum to JSON contents.

func AppendPtrEnumStr

func AppendPtrEnumStr[T protoreflect.Enum](enc *Encoder, jsonKey string, val *T, omitempty bool)

AppendPtrEnumStr append an JSON key with value of proto enum to JSON contents.

func AppendPtrF32

func AppendPtrF32(enc *Encoder, jsonKey string, val *float32, omitempty, quote bool)

AppendPtrF32 append an JSON key with pointer of float32 to JSON contents.

func AppendPtrF64

func AppendPtrF64(enc *Encoder, jsonKey string, val *float64, omitempty, quote bool)

AppendPtrF64 append an JSON key with pointer of float64 to JSON contents.

func AppendPtrI32

func AppendPtrI32(enc *Encoder, jsonKey string, val *int32, omitempty, quote bool)

AppendPtrI32 append an JSON key with pointer of int32 to JSON contents.

func AppendPtrI64

func AppendPtrI64(enc *Encoder, jsonKey string, val *int64, omitempty, quote bool)

AppendPtrI64 append an JSON key with pointer of int64 to JSON contents.

func AppendPtrStr

func AppendPtrStr(enc *Encoder, jsonKey string, val *string, omitempty bool)

AppendPtrStr append an JSON key with pointer of string to JSON contents.

func AppendPtrU32

func AppendPtrU32(enc *Encoder, jsonKey string, val *uint32, omitempty, quote bool)

AppendPtrU32 append an JSON key with pointer of uint32 to JSON contents.

func AppendPtrU64

func AppendPtrU64(enc *Encoder, jsonKey string, val *uint64, omitempty, quote bool)

AppendPtrU64 append an JSON key with pointer of uint64 to JSON contents.

func AppendValBool

func AppendValBool(enc *Encoder, jsonKey string, val bool, omitempty, quote bool)

AppendValBool append an JSON key with value of bool to JSON contents.

func AppendValBytes

func AppendValBytes(enc *Encoder, jsonKey string, val []byte, omitempty bool) error

AppendValBytes append an JSON key with value of bytes to JSON contents.

func AppendValEnumNum

func AppendValEnumNum(enc *Encoder, jsonKey string, val protoreflect.Enum, omitempty, quote bool)

AppendValEnumNum append an JSON key with value of proto enum to JSON contents.

func AppendValEnumStr

func AppendValEnumStr(enc *Encoder, jsonKey string, val protoreflect.Enum, omitempty bool)

AppendValEnumStr append an JSON key with value of proto enum to JSON contents.

func AppendValF32

func AppendValF32(enc *Encoder, jsonKey string, val float32, omitempty, quote bool)

AppendValF32 append an JSON key with value of float32 to JSON contents.

func AppendValF64

func AppendValF64(enc *Encoder, jsonKey string, val float64, omitempty, quote bool)

AppendValF64 append an JSON key with value of float64 to JSON contents.

func AppendValI32

func AppendValI32(enc *Encoder, jsonKey string, val int32, omitempty, quote bool)

AppendValI32 append an JSON key with value of int32 to JSON contents.

func AppendValI64

func AppendValI64(enc *Encoder, jsonKey string, val int64, omitempty, quote bool)

AppendValI64 append an JSON key with value of int64 to JSON contents.

func AppendValMessage

func AppendValMessage[U any, T *U](enc *Encoder, jsonKey string, val T, omitempty bool) error

AppendValMessage append an JSON key with value of proto MESSAGE to JSON contents. func AppendValProtoMessage[T PtrGoAny[U], U any](enc *Encoder, jsonKey string,

val T) error {

func AppendValStr

func AppendValStr(enc *Encoder, jsonKey string, val string, omitempty bool)

AppendValStr append an JSON key with value of string to JSON contents.

func AppendValU32

func AppendValU32(enc *Encoder, jsonKey string, val uint32, omitempty, quote bool)

AppendValU32 append an JSON key with value of uint32 to JSON contents.

func AppendValU64

func AppendValU64(enc *Encoder, jsonKey string, val uint64, omitempty, quote bool)

AppendValU64 append an JSON key with value of uint64 to JSON contents.

func AppendValWKTAnyObject

func AppendValWKTAnyObject(enc *Encoder, jsonKey string, val *anypb.Any, omitempty bool) error

AppendValWKTAnyObject append an JSON key with value of WKT any to JSON contents.

func AppendValWKTAnyProto

func AppendValWKTAnyProto(enc *Encoder, jsonKey string, val *anypb.Any, omitempty bool) error

AppendValWKTAnyProto append an JSON key with value of WKT any to JSON contents.

func AppendValWKTDurHour

func AppendValWKTDurHour(enc *Encoder, jsonKey string, val *durationpb.Duration, omitempty, quote bool)

AppendValWKTDurHour append an JSON key with value of WKT duration to JSON contents.

func AppendValWKTDurMicro

func AppendValWKTDurMicro(enc *Encoder, jsonKey string, val *durationpb.Duration, omitempty, quote bool)

AppendValWKTDurMicro append an JSON key with value of WKT duration to JSON contents.

func AppendValWKTDurMilli

func AppendValWKTDurMilli(enc *Encoder, jsonKey string, val *durationpb.Duration, omitempty, quote bool)

AppendValWKTDurMilli append an JSON key with value of WKT duration to JSON contents.

func AppendValWKTDurMinute

func AppendValWKTDurMinute(enc *Encoder, jsonKey string, val *durationpb.Duration, omitempty, quote bool)

AppendValWKTDurMinute append an JSON key with value of WKT duration to JSON contents.

func AppendValWKTDurNano

func AppendValWKTDurNano(enc *Encoder, jsonKey string, val *durationpb.Duration, omitempty, quote bool)

AppendValWKTDurNano append an JSON key with value of WKT duration to JSON contents.

func AppendValWKTDurObject

func AppendValWKTDurObject(enc *Encoder, jsonKey string, val *durationpb.Duration, omitempty bool) error

AppendValWKTDurObject append an JSON key with value of WKT duration to JSON contents.

func AppendValWKTDurSecond

func AppendValWKTDurSecond(enc *Encoder, jsonKey string, val *durationpb.Duration, omitempty, quote bool)

AppendValWKTDurSecond append an JSON key with value of WKT duration to JSON contents.

func AppendValWKTDurTimeStr

func AppendValWKTDurTimeStr(enc *Encoder, jsonKey string, val *durationpb.Duration, omitempty bool)

AppendValWKTDurTimeStr append an JSON key with value of WKT duration to JSON contents.

func AppendValWKTTsLayout

func AppendValWKTTsLayout(enc *Encoder, jsonKey string, val *timestamppb.Timestamp, omitempty bool, layout string)

AppendValWKTTsLayout append an JSON key with value of WKT timestamp to JSON contents.

func AppendValWKTTsObject

func AppendValWKTTsObject(enc *Encoder, jsonKey string, val *timestamppb.Timestamp, omitempty bool) error

AppendValWKTTsObject append an JSON key with value of WKT timestamp to JSON contents.

func AppendValWKTTsUnixMicro

func AppendValWKTTsUnixMicro(enc *Encoder, jsonKey string, val *timestamppb.Timestamp, omitempty, quote bool)

AppendValWKTTsUnixMicro append an JSON key with value of WKT timestamp to JSON contents.

func AppendValWKTTsUnixMilli

func AppendValWKTTsUnixMilli(enc *Encoder, jsonKey string, val *timestamppb.Timestamp, omitempty, quote bool)

AppendValWKTTsUnixMilli append an JSON key with value of WKT timestamp to JSON contents.

func AppendValWKTTsUnixNano

func AppendValWKTTsUnixNano(enc *Encoder, jsonKey string, val *timestamppb.Timestamp, omitempty, quote bool)

AppendValWKTTsUnixNano append an JSON key with value of WKT timestamp to JSON contents.

func AppendValWKTTsUnixSec

func AppendValWKTTsUnixSec(enc *Encoder, jsonKey string, val *timestamppb.Timestamp, omitempty, quote bool)

AppendValWKTTsUnixSec append an JSON key with value of WKT timestamp to JSON contents.

Types

type Encoder

type Encoder struct {
	// contains filtered or unexported fields
}

func New

func New(bufLen int) *Encoder

New return an Encoder. TODO: Add escapeHTML in func arguments.

func (*Encoder) AppendListBegin

func (enc *Encoder) AppendListBegin()

AppendListBegin append a beginning of square brackets into json contents. It can be used for begin of array and slice.

func (*Encoder) AppendListEnd

func (enc *Encoder) AppendListEnd()

AppendListEnd append an ending of square brackets into json contents. It can be used for end of array and slice.

func (*Encoder) AppendObjectBegin

func (enc *Encoder) AppendObjectBegin()

AppendObjectBegin append a beginning of curly braces into json contents. It can be used for begin of JSON, map and struct.

func (*Encoder) AppendObjectEnd

func (enc *Encoder) AppendObjectEnd()

AppendObjectEnd append an ending of curly braces into json contents. It can be used for end of JSON, map and struct.

func (*Encoder) AppendObjectKey

func (enc *Encoder) AppendObjectKey(k string)

AppendObjectKey append an object key and colon delimiter into JSON contents.

func (*Encoder) AppendValNULL

func (enc *Encoder) AppendValNULL()

AppendValNULL append a value `null` to JSON contents.

func (*Encoder) Bytes

func (enc *Encoder) Bytes() []byte

Bytes return the JSON contents and close the encoder.

func (*Encoder) Write

func (enc *Encoder) Write(p []byte) (n int, err error)

Impls interface io.Writer

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL