pkg/ioutils: deprecate NopWriter

It's not used, and users can use io.Discard instead.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn
2025-01-10 14:17:28 +01:00
parent 71253c38f1
commit 7fa3c553e7

View File

@@ -6,6 +6,8 @@ import (
)
// NopWriter represents a type which write operation is nop.
//
// Deprecated: use [io.Discard] instead. This type will be removed in the next release.
type NopWriter struct{}
func (*NopWriter) Write(buf []byte) (int, error) {