Browse Source

Add BlackholeWrite

zry 2 years ago
parent
commit
b4ceb15c58
1 changed files with 8 additions and 0 deletions
  1. 8 0
      blackhole_writer.go

+ 8 - 0
blackhole_writer.go

@@ -0,0 +1,8 @@
+package zioutil
+
+type BlackholeWriter struct {
+}
+
+func (bhw BlackholeWriter) Write(b []byte) (n int, err error) {
+	return len(b), nil
+}