util

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 12, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyThrough

func CopyThrough(p *pipe.Pipe, lhs, rhs io.ReadWriteCloser) (lhsb, rhsb []int, err error)

CopyThrough starts p, runs lhs using R.Input/L.Output and rhs using R.Output/L.Input. rhs can be nil, which will close R.Output right away. Stops p and closes lhs/rhs before return. Returns sent/received bytes in lhsb and rhsb.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL