stdio

package
v0.5.5 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DiscardReader

func DiscardReader(src io.Reader)

DiscardReader anything from the reader

func MustReadReader

func MustReadReader(r io.Reader) []byte

MustReadReader read contents from io.Reader, will panic on error

func QuietWriteString

func QuietWriteString(w io.Writer, ss ...string)

QuietWriteString to writer

Types

type WriteWrapper

type WriteWrapper struct {
	Out io.Writer
}

WriteWrapper struct

func NewWriteWrapper

func NewWriteWrapper(w io.Writer) *WriteWrapper

NewWriteWrapper instance

func (*WriteWrapper) String

func (w *WriteWrapper) String() string

String get write data string

func (*WriteWrapper) Write

func (w *WriteWrapper) Write(p []byte) (n int, err error)

Write bytes data

func (*WriteWrapper) WriteByte

func (w *WriteWrapper) WriteByte(c byte) error

WriteByte data

func (*WriteWrapper) WriteString

func (w *WriteWrapper) WriteString(s string) (n int, err error)

WriteString data

Jump to

Keyboard shortcuts

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