Documentation
¶
Index ¶
- func AppendBool(dst []byte, val bool) []byte
- func AppendBools(dst []byte, vals []bool) []byte
- func AppendBytes(dst, s []byte) []byte
- func AppendDuration(dst []byte, d time.Duration, unit time.Duration, useInt bool) []byte
- func AppendDurations(dst []byte, vals []time.Duration, unit time.Duration, useInt bool) []byte
- func AppendError(dst []byte, err error) []byte
- func AppendErrors(dst []byte, errs []error) []byte
- func AppendFloat(dst []byte, val float64, bitSize int) []byte
- func AppendFloat32(dst []byte, val float32) []byte
- func AppendFloat64(dst []byte, val float64) []byte
- func AppendFloats32(dst []byte, vals []float32) []byte
- func AppendFloats64(dst []byte, vals []float64) []byte
- func AppendHex(dst, s []byte) []byte
- func AppendInt(dst []byte, val int) []byte
- func AppendInt16(dst []byte, val int16) []byte
- func AppendInt32(dst []byte, val int32) []byte
- func AppendInt64(dst []byte, val int64) []byte
- func AppendInt8(dst []byte, val int8) []byte
- func AppendInterface(dst []byte, i interface{}) []byte
- func AppendInts(dst []byte, vals []int) []byte
- func AppendInts16(dst []byte, vals []int16) []byte
- func AppendInts32(dst []byte, vals []int32) []byte
- func AppendInts64(dst []byte, vals []int64) []byte
- func AppendInts8(dst []byte, vals []int8) []byte
- func AppendKey(dst []byte, key string) []byte
- func AppendObjectData(dst []byte, o []byte) []byte
- func AppendString(dst []byte, s string) []byte
- func AppendStrings(dst []byte, vals []string) []byte
- func AppendTime(dst []byte, t time.Time, format string) []byte
- func AppendTimes(dst []byte, vals []time.Time, format string) []byte
- func AppendUint(dst []byte, val uint) []byte
- func AppendUint16(dst []byte, val uint16) []byte
- func AppendUint32(dst []byte, val uint32) []byte
- func AppendUint64(dst []byte, val uint64) []byte
- func AppendUint8(dst []byte, val uint8) []byte
- func AppendUints(dst []byte, vals []uint) []byte
- func AppendUints16(dst []byte, vals []uint16) []byte
- func AppendUints32(dst []byte, vals []uint32) []byte
- func AppendUints64(dst []byte, vals []uint64) []byte
- func AppendUints8(dst []byte, vals []uint8) []byte
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AppendBool ¶
AppendBool converts the input bool to a string and appends the encoded string to the input byte slice.
func AppendBools ¶
AppendBools encodes the input bools to json and appends the encoded string list to the input byte slice.
func AppendBytes ¶
AppendBytes is a mirror of appendString with []byte arg
func AppendDuration ¶
AppendDuration formats the input duration with the given unit & format and appends the encoded string to the input byte slice.
func AppendDurations ¶
AppendDurations formats the input durations with the given unit & format and appends the encoded string list to the input byte slice.
func AppendError ¶
AppendError encodes the error string to json and appends the encoded string to the input byte slice.
func AppendErrors ¶
AppendErrors encodes the error strings to json and appends the encoded string list to the input byte slice.
func AppendFloat ¶
AppendFloat converts the input float to a string and appends the encoded string to the input byte slice.
func AppendFloat32 ¶
AppendFloat32 converts the input float32 to a string and appends the encoded string to the input byte slice.
func AppendFloat64 ¶
AppendFloat64 converts the input float64 to a string and appends the encoded string to the input byte slice.
func AppendFloats32 ¶
AppendFloats32 encodes the input float32s to json and appends the encoded string list to the input byte slice.
func AppendFloats64 ¶
AppendFloats64 encodes the input float64s to json and appends the encoded string list to the input byte slice.
func AppendHex ¶ added in v1.6.0
AppendHex encodes the input bytes to a hex string and appends the encoded string to the input byte slice.
The operation loops though each byte and encodes it as hex using the hex lookup table.
func AppendInt ¶
AppendInt converts the input int to a string and appends the encoded string to the input byte slice.
func AppendInt16 ¶
AppendInt16 converts the input int16 to a string and appends the encoded string to the input byte slice.
func AppendInt32 ¶
AppendInt32 converts the input int32 to a string and appends the encoded string to the input byte slice.
func AppendInt64 ¶
AppendInt64 converts the input int64 to a string and appends the encoded string to the input byte slice.
func AppendInt8 ¶
AppendInt8 converts the input []int8 to a string and appends the encoded string to the input byte slice.
func AppendInterface ¶
AppendInterface marshals the input interface to a string and appends the encoded string to the input byte slice.
func AppendInts ¶
AppendInts encodes the input ints to json and appends the encoded string list to the input byte slice.
func AppendInts16 ¶
AppendInts16 encodes the input int16s to json and appends the encoded string list to the input byte slice.
func AppendInts32 ¶
AppendInts32 encodes the input int32s to json and appends the encoded string list to the input byte slice.
func AppendInts64 ¶
AppendInts64 encodes the input int64s to json and appends the encoded string list to the input byte slice.
func AppendInts8 ¶
AppendInts8 encodes the input int8s to json and appends the encoded string list to the input byte slice.
func AppendObjectData ¶ added in v1.6.0
func AppendString ¶
AppendString encodes the input string to json and appends the encoded string to the input byte slice.
The operation loops though each byte in the string looking for characters that need json or utf8 encoding. If the string does not need encoding, then the string is appended in it's entirety to the byte slice. If we encounter a byte that does need encoding, switch up the operation and perform a byte-by-byte read-encode-append.
func AppendStrings ¶
AppendStrings encodes the input strings to json and appends the encoded string list to the input byte slice.
func AppendTime ¶
AppendTime formats the input time with the given format and appends the encoded string to the input byte slice.
func AppendTimes ¶
AppendTimes converts the input times with the given format and appends the encoded string list to the input byte slice.
func AppendUint ¶
AppendUint converts the input uint to a string and appends the encoded string to the input byte slice.
func AppendUint16 ¶
AppendUint16 converts the input uint16 to a string and appends the encoded string to the input byte slice.
func AppendUint32 ¶
AppendUint32 converts the input uint32 to a string and appends the encoded string to the input byte slice.
func AppendUint64 ¶
AppendUint64 converts the input uint64 to a string and appends the encoded string to the input byte slice.
func AppendUint8 ¶
AppendUint8 converts the input uint8 to a string and appends the encoded string to the input byte slice.
func AppendUints ¶
AppendUints encodes the input uints to json and appends the encoded string list to the input byte slice.
func AppendUints16 ¶
AppendUints16 encodes the input uint16s to json and appends the encoded string list to the input byte slice.
func AppendUints32 ¶
AppendUints32 encodes the input uint32s to json and appends the encoded string list to the input byte slice.
func AppendUints64 ¶
AppendUints64 encodes the input uint64s to json and appends the encoded string list to the input byte slice.
func AppendUints8 ¶
AppendUints8 encodes the input uint8s to json and appends the encoded string list to the input byte slice.
Types ¶
This section is empty.