convert

package
v0.0.0-...-5f966df Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ToKeyVals

func ToKeyVals(attr slog.Attr) (kvs []attribute.KeyValue)

ToKeyVals converts a slog.Attr to a list of attribute.KeyValue objects. Nested values such as slog.Group and slog.LogValuer are flattened and their hierarchy represented by a delimiting "."

func ToSlogAttr

func ToSlogAttr(kv attribute.KeyValue) (attr slog.Attr)

ToSlogAttr converts an attribute.KeyValue to a slog.Attr

Types

This section is empty.

Jump to

Keyboard shortcuts

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