fix linter error, mv const to config

This commit is contained in:
2025-10-22 17:57:53 +02:00
parent 6d1ffbb02f
commit 00709b4ba0
2 changed files with 4 additions and 7 deletions

View File

@@ -7,17 +7,10 @@ import (
"github.com/ncw/directio"
)
const (
O_R = iota
O_W
O_RW
)
// aligned allocs used for testing
type Alloc struct {
writeBlock []byte
readBlock []byte
mode int
}
// zero the memory blocks

View File

@@ -28,6 +28,10 @@ Options:
-d --debug Enable debug log level
-h --help Show help
-v --version Show program version`
O_R = iota
O_W
O_RW
)
// config via commandline flags