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.5.0
- Published
- Jan 6, 2020
- Platform
- js/wasm
- Imports
- 2 packages
- Last checked
- 2 days ago –
Tools for package owners.