serialize

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func KVListFormat

func KVListFormat(b *bytes.Buffer, keysAndValues ...interface{})

KVListFormat serializes all key/value pairs into the provided buffer. A space gets inserted before the first pair and between each pair.

func TrimDuplicates

func TrimDuplicates(kvLists ...[]interface{}) [][]interface{}

TrimDuplicates deduplicates elements provided in multiple key/value tuple slices, whilst maintaining the distinction between where the items are contained.

func WithValues

func WithValues(oldKV, newKV []interface{}) []interface{}

WithValues implements LogSink.WithValues. The old key/value pairs are assumed to be well-formed, the new ones are checked and padded if necessary. It returns a new slice.

Types

This section is empty.

Jump to

Keyboard shortcuts

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