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> |
||
|---|---|---|
| .. | ||
| testdata | ||
| analyze.go | ||
| analyze_test.go | ||
| archive.go | ||
| backfill.go | ||
| backfill_test.go | ||
| debug.go | ||
| main.go | ||
| main_test.go | ||
| metrics.go | ||
| query.go | ||
| rules.go | ||
| rules_test.go | ||
| sd.go | ||
| sd_test.go | ||
| tsdb.go | ||
| tsdb_posix_test.go | ||
| tsdb_test.go | ||
| unittest.go | ||
| unittest_test.go | ||