errorsemperror.dev/errors/utils/keyval Index | Files

package keyval

import "emperror.dev/errors/utils/keyval"

Index

Functions

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.

Source Files

to_map.go

Version
v0.8.1 (latest)
Published
Feb 23, 2022
Platform
js/wasm
Imports
2 packages
Last checked
1 day ago

Tools for package owners.