prometheus/tsdb/fileutil
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
..
dir.go wal: ignore os.ErrNotExist errors in DirSize during WAL size calculation 2025-08-05 22:41:46 +05:30
dir_unix.go remove obsolete build tag 2024-01-17 22:26:32 +08:00
dir_windows.go remove obsolete build tag 2024-01-17 22:26:32 +08:00
direct_io.go feat(tsdb): introduce --use-uncached-io feature flag and allow using it for chunks writing (#15365) 2025-05-21 14:42:30 +02:00
direct_io_force.go feat(tsdb): introduce --use-uncached-io feature flag and allow using it for chunks writing (#15365) 2025-05-21 14:42:30 +02:00
direct_io_linux.go feat(tsdb): introduce --use-uncached-io feature flag and allow using it for chunks writing (#15365) 2025-05-21 14:42:30 +02:00
direct_io_unsupported.go chore: enable unused-receiver rule from revive 2025-08-04 09:43:33 +00:00
direct_io_writer.go fix(test): fall back to default direct I/O requirements in tests when statx isn't supported by using a higher lever util 2025-05-29 09:35:33 +02:00
direct_io_writer_test.go Apply analyzer "modernize" to the whole codebase 2025-08-27 14:48:41 +02:00
fileutil.go chore: enable unused-parameter from revive 2025-02-19 19:50:28 +01:00
flock.go Format Go source files using 'gofumpt -w -s -extra' 2021-11-02 19:52:34 +01:00
flock_js.go remove obsolete build tag 2024-01-17 22:26:32 +08:00
flock_plan9.go Format Go source files using 'gofumpt -w -s -extra' 2021-11-02 19:52:34 +01:00
flock_solaris.go remove obsolete build tag 2024-01-17 22:26:32 +08:00
flock_test.go tests: remove err from message when testify prints it already 2024-02-01 14:18:01 +00:00
flock_unix.go remove obsolete build tag 2024-01-17 22:26:32 +08:00
flock_windows.go Moving tsdb into its own subdirectory 2019-08-13 13:58:49 +05:30
mmap.go tsdb/fileutil: use Go standard errors 2023-11-14 19:05:21 +00:00
mmap_386.go remove obsolete build tag 2024-01-17 22:26:32 +08:00
mmap_amd64.go remove obsolete build tag 2024-01-17 22:26:32 +08:00
mmap_arm64.go remove obsolete build tag 2024-01-17 22:26:32 +08:00
mmap_js.go remove obsolete build tag 2024-01-17 22:26:32 +08:00
mmap_unix.go remove obsolete build tag 2024-01-17 22:26:32 +08:00
mmap_windows.go Moving tsdb into its own subdirectory 2019-08-13 13:58:49 +05:30
preallocate.go Moving tsdb into its own subdirectory 2019-08-13 13:58:49 +05:30
preallocate_darwin.go tsdb/fileutil: Use FcntlFstore from golang.org/x/sys/unix (#7949) 2020-09-19 10:57:13 +01:00
preallocate_linux.go tsdb/fileutil: use Go standard errors 2023-11-14 19:05:21 +00:00
preallocate_other.go remove obsolete build tag 2024-01-17 22:26:32 +08:00
sync.go remove obsolete build tag 2024-01-17 22:26:32 +08:00
sync_darwin.go remove obsolete build tag 2024-01-17 22:26:32 +08:00
sync_linux.go remove obsolete build tag 2024-01-17 22:26:32 +08:00