Documentation ΒΆ
Index ΒΆ
- func AnyValueToString(v slog.Value) string
- func AppendAttrsToGroup(groups []string, actualAttrs []slog.Attr, newAttrs ...slog.Attr) []slog.Attr
- func AppendRecordAttrsToAttrs(attrs []slog.Attr, groups []string, record *slog.Record) []slog.Attr
- func AttrToValue(attr slog.Attr) (string, any)
- func AttrsToMap(attrs ...slog.Attr) map[string]any
- func AttrsToString(attrs ...slog.Attr) map[string]string
- func ExtractError(attrs []slog.Attr, errorKeys ...string) ([]slog.Attr, error)
- func FindAttrByGroupAndKey(attrs []slog.Attr, groups []string, key string) (slog.Attr, bool)
- func FindAttrByKey(attrs []slog.Attr, key string) (slog.Attr, bool)
- func FindAttribute(attrs []slog.Attr, groups []string, key string) (slog.Attr, bool)
- func FormatError(err error) map[string]any
- func FormatErrorKey(values map[string]any, errorKeys ...string) map[string]any
- func FormatRequest(req *http.Request, ignoreHeaders bool) map[string]any
- func ReplaceAttrs(fn ReplaceAttrFn, groups []string, attrs ...slog.Attr) []slog.Attr
- func ReplaceError(attrs []slog.Attr, errorKeys ...string) []slog.Attr
- func Source(sourceKey string, r *slog.Record) slog.Attr
- func StringSource(sourceKey string, r *slog.Record) slog.Attr
- func UniqAttrs(attrs []slog.Attr) []slog.Attr
- func ValueToString(v slog.Value) string
- type ReplaceAttrFn
Constants ΒΆ
This section is empty.
Variables ΒΆ
This section is empty.
Functions ΒΆ
func AnyValueToString ΒΆ
func AppendAttrsToGroup ΒΆ
func FindAttrByGroupAndKey ΒΆ
func FindAttribute ΒΆ
func FormatError ΒΆ
func FormatErrorKey ΒΆ
func ReplaceAttrs ΒΆ
func ValueToString ΒΆ
Types ΒΆ
Click to show internal directories.
Click to hide internal directories.