keyvalue

package
v0.0.0-...-e270f0a Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package keyvalue provides some standard key/value pair values usable for the key/value list of logging messages. They bundle key and value and provide standardizes keys for various use cases, like errors, ids or names.

Own standard key/value pairs can be defined in own packages by using the logging.KeyValue function.

Those values can be used as single argument representing a key/value pair together with a sequence of key and value arguments in the argument list of the logging methods.

Index

Constants

View Source
const ELEMENT = "element"
View Source
const ERROR = "error"
View Source
const ID = "id"
View Source
const NAME = "name"
View Source
const NAMESPACE = "namespace"

Variables

This section is empty.

Functions

func Element

func Element(v interface{}) interface{}

func Error

func Error(v interface{}) interface{}

func Id

func Id(v interface{}) interface{}

func Name

func Name(v interface{}) interface{}

func Namespace

func Namespace(v interface{}) interface{}

Types

This section is empty.

Jump to

Keyboard shortcuts

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