package slogtest
import "log/slog/internal/slogtest"
Package slogtest contains support functions for testing slog.
Index ¶
Functions ¶
func RemoveTime ¶
RemoveTime removes the top-level time attribute. It is intended to be used as a ReplaceAttr function, to make example output deterministic.
Source Files ¶
- Version
- v1.21.0-rc.2
- Published
- Jun 21, 2023
- Platform
- linux/amd64
- Imports
- 1 packages
- Last checked
- 6 minutes ago –
Tools for package owners.