prometheus/model/histogram
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
..
float_histogram.go Histograms: set annotation when adding or subtracting histograms that have not_reset and reset hints. 2025-08-20 15:00:45 +02:00
float_histogram_test.go Apply analyzer "modernize" to the whole codebase 2025-08-27 14:48:41 +02:00
generic.go Apply analyzer "modernize" to the whole codebase 2025-08-27 14:48:41 +02:00
generic_test.go Merge branch 'main' into nhcb 2024-03-22 14:51:48 +01:00
histogram.go perf(chunkenc): intern the custom values for native histograms 2025-05-07 14:40:45 +02:00
histogram_test.go Fix lint error 2024-06-24 09:33:03 +02:00
test_utils.go Apply analyzer "modernize" to the whole codebase 2025-08-27 14:48:41 +02:00