prometheus/discovery/moby
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
..
testdata Merge branch 'main' into 3.0-main-sync-24-08-30 2024-09-02 11:27:18 +02:00
docker.go Apply analyzer "modernize" to the whole codebase 2025-08-27 14:48:41 +02:00
docker_test.go chore!: adopt log/slog, remove go-kit/log 2024-10-07 15:58:50 -04:00
dockerswarm.go Apply analyzer "modernize" to the whole codebase 2025-08-27 14:48:41 +02:00
metrics_docker.go chore: enable unused-receiver rule from revive 2025-08-04 09:43:33 +00:00
metrics_dockerswarm.go chore: enable unused-receiver rule from revive 2025-08-04 09:43:33 +00:00
mock_test.go chore: Fix typos (#14868) 2024-09-10 22:32:03 +02:00
network.go Update for Docker deprecation 2024-07-17 17:03:32 +01:00
nodes.go [BUILD] Docker SD: Fix up deprecated types 2025-06-23 16:15:58 +01:00
nodes_test.go chore!: adopt log/slog, remove go-kit/log 2024-10-07 15:58:50 -04:00
services.go [BUILD] Docker SD: Fix up deprecated types 2025-06-23 16:15:58 +01:00
services_test.go chore!: adopt log/slog, remove go-kit/log 2024-10-07 15:58:50 -04:00
tasks.go Apply analyzer "modernize" to the whole codebase 2025-08-27 14:48:41 +02:00
tasks_test.go chore!: adopt log/slog, remove go-kit/log 2024-10-07 15:58:50 -04:00