...

Package keyvals

import "github.com/goph/emperror/internal/keyvals"
Overview
Index

Overview ▾

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.