ioextends

package
v0.0.0-...-23853e3 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2024 License: GPL-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Piped

type Piped struct {
	// contains filtered or unexported fields
}

func ReadPipe

func ReadPipe() *Piped

func (*Piped) AddWriter

func (w *Piped) AddWriter(wr io.WriteCloser) error

Add existing io.WriteCloser to list

func (*Piped) Close

func (w *Piped) Close() error

Close all writes, if io.WriteCloser.Close() returns an error, the loop will be stopped and this error will be returned, if no error occurs, return an io.EOF

func (*Piped) NewPipe

func (w *Piped) NewPipe() (io.ReadCloser, error)

create new ReadCloser

func (*Piped) Write

func (w *Piped) Write(p []byte) (int, error)

Write bytes to pipeds streams

Jump to

Keyboard shortcuts

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