diff options
| author | 2026-06-08 05:58:26 +0000 | |
|---|---|---|
| committer | 2026-06-08 05:58:26 +0000 | |
| commit | 256cfa4a6946b7a86bd16791f19e299ff25b7fe3 (patch) | |
| tree | c51cd26230cc0270b5ac4c6d68d52300c54150b5 /common | |
| parent | REFACTOR: utils is done (diff) | |
common/iowrap: Remove in favor of lgo
Diffstat (limited to 'common')
| -rw-r--r-- | common/iowrap/doc.go | 3 | ||||
| -rw-r--r-- | common/iowrap/write_flusher.go | 9 | ||||
| -rw-r--r-- | common/iowrap/write_flusher_nop.go | 23 |
3 files changed, 0 insertions, 35 deletions
diff --git a/common/iowrap/doc.go b/common/iowrap/doc.go deleted file mode 100644 index 3aad6a2f..00000000 --- a/common/iowrap/doc.go +++ /dev/null @@ -1,3 +0,0 @@ -// Package iowrap provides -// small public I/O wrapper interfaces and adapters. -package iowrap diff --git a/common/iowrap/write_flusher.go b/common/iowrap/write_flusher.go deleted file mode 100644 index aaac8724..00000000 --- a/common/iowrap/write_flusher.go +++ /dev/null @@ -1,9 +0,0 @@ -package iowrap - -import "io" - -// WriteFlusher writes bytes and flushes buffered output state. -type WriteFlusher interface { - io.Writer - Flush() error -} diff --git a/common/iowrap/write_flusher_nop.go b/common/iowrap/write_flusher_nop.go deleted file mode 100644 index fba87e8d..00000000 --- a/common/iowrap/write_flusher_nop.go +++ /dev/null @@ -1,23 +0,0 @@ -package iowrap - -import "io" - -type nopFlusher struct { - io.Writer -} - -// NopFlush adapts writer into a [WriteFlusher] with a no-op Flush. -// -//nolint:ireturn -func NopFlush(writer io.Writer) WriteFlusher { - if writer == nil { - return nil - } - - return nopFlusher{Writer: writer} -} - -// Flush lets us satisfy [WriteFlusher] but does nothing. -func (nopFlusher) Flush() error { - return nil -} |
