prometheus/util
beorn7 747c5ee2b1 Apply analyzer "modernize" to the whole codebase
See
https://pkg.go.dev/golang.org/x/tools/gopls/internal/analysis/modernize
for details.

This ran into a few issues (arguably bugs in the modernize tool),
which I will fix in the next commit, so that we have transparency what
was done automatically.

Beyond those hiccups, I believe all the changes applied are
legitimate. Even where there might be no tangible direct gain, I would
argue it's still better to use the "modern" way to avoid micro
discussions in tiny style PRs later.

Signed-off-by: beorn7 <beorn@grafana.com>
2025-08-27 14:48:41 +02:00
..
almost
annotations Apply analyzer "modernize" to the whole codebase 2025-08-27 14:48:41 +02:00
compression chore: enable unused-receiver rule from revive 2025-08-04 09:43:33 +00:00
convertnhcb
documentcli Apply analyzer "modernize" to the whole codebase 2025-08-27 14:48:41 +02:00
fmtutil Apply analyzer "modernize" to the whole codebase 2025-08-27 14:48:41 +02:00
gate
httputil Apply analyzer "modernize" to the whole codebase 2025-08-27 14:48:41 +02:00
jsonutil
junitxml
logging Apply analyzer "modernize" to the whole codebase 2025-08-27 14:48:41 +02:00
namevalidationutil Make metric/label name validation scheme explicit (#16928) 2025-08-18 08:09:00 +00:00
netconnlimit
notifications Apply analyzer "modernize" to the whole codebase 2025-08-27 14:48:41 +02:00
osutil
pool Apply analyzer "modernize" to the whole codebase 2025-08-27 14:48:41 +02:00
runtime
runutil
stats Apply analyzer "modernize" to the whole codebase 2025-08-27 14:48:41 +02:00
strutil Apply analyzer "modernize" to the whole codebase 2025-08-27 14:48:41 +02:00
teststorage
testutil Apply analyzer "modernize" to the whole codebase 2025-08-27 14:48:41 +02:00
treecache Apply analyzer "modernize" to the whole codebase 2025-08-27 14:48:41 +02:00
zeropool Apply analyzer "modernize" to the whole codebase 2025-08-27 14:48:41 +02:00