Documentation ¶ Index ¶ func ToKeyVals(attr slog.Attr) (kvs []attribute.KeyValue) func ToSlogAttr(kv attribute.KeyValue) (attr slog.Attr) 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. Source Files ¶ View all Source files convert.go Click to show internal directories. Click to hide internal directories.