prometheus/model/labels
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
..
labels_common.go Apply analyzer "modernize" to the whole codebase 2025-08-27 14:48:41 +02:00
labels_dedupelabels.go fix(ci): run linter with all build tags (#17027) 2025-08-08 09:43:41 +00:00
labels_dedupelabels_test.go Add ByteSize method for Labels (#16717) 2025-07-04 15:09:01 +01:00
labels_slicelabels.go fix(ci): run linter with all build tags (#17027) 2025-08-08 09:43:41 +00:00
labels_slicelabels_test.go Add ByteSize method for Labels (#16717) 2025-07-04 15:09:01 +01:00
labels_stringlabels.go chore: enable unused-receiver rule from revive 2025-08-04 09:43:33 +00:00
labels_stringlabels_test.go Add ByteSize method for Labels (#16717) 2025-07-04 15:09:01 +01:00
labels_test.go Apply analyzer "modernize" to the whole codebase 2025-08-27 14:48:41 +02:00
matcher.go Fix Matcher.String() with empty label name 2024-06-13 18:46:35 +02:00
matcher_test.go Quote label name in matchers when needed 2024-05-08 16:58:51 +02:00
regexp.go chore: enable unused-receiver rule from revive 2025-08-04 09:43:33 +00:00
regexp_test.go Apply analyzer "modernize" to the whole codebase 2025-08-27 14:48:41 +02:00
sharding.go Use stringlabels by default 2025-04-15 17:52:24 +01:00
sharding_dedupelabels.go Labels: use single byte as separator - small speedup 2024-07-15 09:47:16 +01:00
sharding_stringlabels.go Use stringlabels by default 2025-04-15 17:52:24 +01:00
sharding_test.go Add ShardedPostings() support to TSDB (#10421) 2024-01-29 11:57:27 +00:00
test_utils.go Labels: Call NewScratchBuilder in test_utils 2024-02-23 13:50:27 +00:00