From 00709b4ba0c30043785c652f8161db675a31687f Mon Sep 17 00:00:00 2001 From: Thomas von Dein Date: Wed, 22 Oct 2025 17:57:53 +0200 Subject: [PATCH] fix linter error, mv const to config --- cmd/alloc.go | 7 ------- cmd/config.go | 4 ++++ 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/cmd/alloc.go b/cmd/alloc.go index 1835f2d..7025c6e 100644 --- a/cmd/alloc.go +++ b/cmd/alloc.go @@ -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 diff --git a/cmd/config.go b/cmd/config.go index 423c639..e7eeae4 100644 --- a/cmd/config.go +++ b/cmd/config.go @@ -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