mirror of
https://github.com/yusing/godoxy.git
synced 2026-04-18 06:29:42 +02:00
small refactor
This commit is contained in:
@@ -223,3 +223,7 @@ func CopyClose(dst *ContextWriter, src *ContextReader) (err error) {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
func CopyCloseWithContext(ctx context.Context, dst io.Writer, src io.Reader) (err error) {
|
||||
return CopyClose(NewContextWriter(ctx, dst), NewContextReader(ctx, src))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user