keyvals

package
v0.17.0 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromMap

func FromMap(m map[string]interface{}) []interface{}

FromMap converts a map of fields to a variadic key-value pair slice.

func ToMap

func ToMap(kvs []interface{}) map[string]interface{}

ToMap creates a map of key-value pairs from a variadic key-value pair slice.

The implementation bellow is from go-kit's JSON logger.

Types

This section is empty.

Jump to

Keyboard shortcuts

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