Skip to content

Commit

Permalink
feat: add ioz package (#124)
Browse files Browse the repository at this point in the history
  • Loading branch information
ginokent authored Oct 30, 2023
2 parents 7bb67d2 + a0856bd commit 87fe3bf
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions io/writer.go
Original file line number Diff line number Diff line change
@@ -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)
}

0 comments on commit 87fe3bf

Please sign in to comment.