package
Version:
v0.4.1
Opens a new window with list of versions in this module.
Published: May 15, 2020
License: MIT
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package pipe provides a wrapper to create a pipe and
collect at most max bytes from the reader side
NewPipe create a pipe with a goroutine to copy its read-end to writer
returns the write end and signal for finish
caller need to close w
Buffer is used to create a writable pipe and read
at most max bytes to a buffer
NewBuffer creates a os pipe, caller need to
caller need to close w
Notice: if rely on done for finish, w need be closed in parent process
Source Files
¶
Click to show internal directories.
Click to hide internal directories.