tag

package
v0.12.17 Latest Latest
Warning

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

Go to latest
Published: May 28, 2020 License: MIT Imports: 2 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Tag

type Tag fmt.Stringer

Tag is tag value

func NewTag

func NewTag(in interface{}) Tag

NewTag formats a value to print.

type Tags

type Tags map[string]Tag

Tags are named datum to add to a log line

func MapToTags

func MapToTags(m map[string]interface{}) (tags Tags)

MapToTags convert a interface map to Tags

func ReadTags

func ReadTags(tags ...interface{}) Tags

ReadTags read in tags from a list of [string, value]

func (*Tags) Set

func (t *Tags) Set(key string, val interface{})

Set value to key

func (Tags) String

func (t Tags) String() string

String return a string

type Value

type Value string

Value implements a tag value stringer.

func (Value) String

func (v Value) String() string

String returns a string

Jump to

Keyboard shortcuts

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