sloglint icon indicating copy to clipboard operation
sloglint copied to clipboard

🪵 Ensure consistent code style when using log/slog

Results 6 sloglint issues
Sort by recently updated
recently updated
newest added

The `slog.Logger` API is just one of possible many other high-level APIs which accept key/value pairs. Another example is `go-logr/logr.Logger` and some custom wrapper functions in Kubernetes. It would be...

Bumps [golang.org/x/tools](https://github.com/golang/tools) from 0.23.0 to 0.24.0. Commits 3057be8 go.mod: update golang.org/x dependencies 4653e48 gopls/internal/analysis: add skipped analysis simplify on generated code f855a53 gopls/internal/telemetry/cmd/stacks: use authentication token 3ffd605 gopls/doc/features: fix prominent...

dependencies

The `slog.Group()` function is the only means to put some grouped data elements between other elements into the log. A call like `logger.Info("message", "key1", value1, slog.Group("group", "key2", value2, "key3", value3),...

Bumps [golang.org/x/tools](https://github.com/golang/tools) from 0.24.0 to 0.25.0. Commits 7398f36 all: fix some symbols error in comment f111c72 go/callgraph/rta: skip test on js platform 9f9b7e3 gopls/internal/settings: add missing deep cloning in Options.Clone...

dependencies

I've using a customize version to find keys that don't match the convention I'm looking for, but have been trying to think of a more customizable way for this to...