logur: logur.dev/logur/internal/keyvals Index | Files

package keyvals

import "logur.dev/logur/internal/keyvals"


Package Files

from_map.go to_map.go

func FromMap Uses

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

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

func ToMap Uses

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.

Package keyvals imports 2 packages (graph) and is imported by 2 packages. Updated 2019-08-22. Refresh now. Tools for package owners.