diff --git a/io/writer.go b/io/writer.go new file mode 100644 index 00000000..de1b953f --- /dev/null +++ b/io/writer.go @@ -0,0 +1,7 @@ +package ioz + +type WriteFunc func(p []byte) (n int, err error) + +func (f WriteFunc) Write(p []byte) (n int, err error) { + return f(p) +}