type io.Writer
196 uses
io (current package)
io.go#L96: type Writer interface {
io.go#L128: Writer
io.go#L139: Writer
io.go#L146: Writer
io.go#L166: Writer
io.go#L173: Writer
io.go#L196: WriteTo(w Writer) (n int64, err error)
io.go#L307: func WriteString(w Writer, s string) (n int, err error) {
io.go#L357: func CopyN(dst Writer, src Reader, n int64) (written int64, err error) {
io.go#L381: func Copy(dst Writer, src Reader) (written int64, err error) {
io.go#L392: func CopyBuffer(dst Writer, src Reader, buf []byte) (written int64, err error) {
io.go#L401: func copyBuffer(dst Writer, src Reader, buf []byte) (written int64, err error) {
io.go#L550: func TeeReader(r Reader, w Writer) Reader {
io.go#L556: w Writer
io.go#L571: var Discard Writer = discard{}
multi.go#L55: writers []Writer
multi.go#L102: func MultiWriter(writers ...Writer) Writer {
multi.go#L103: allWriters := make([]Writer, 0, len(writers))
io/ioutil
ioutil.go#L84: var Discard io.Writer = io.Discard
bufio
bufio.go#L499: func (b *Reader) WriteTo(w io.Writer) (n int64, err error) {
bufio.go#L541: func (b *Reader) writeBuf(w io.Writer) (int64, error) {
bufio.go#L562: wr io.Writer
bufio.go#L568: func NewWriterSize(w io.Writer, size int) *Writer {
bufio.go#L584: func NewWriter(w io.Writer) *Writer {
bufio.go#L593: func (b *Writer) Reset(w io.Writer) {
bytes
buffer.go#L236: func (b *Buffer) WriteTo(w io.Writer) (n int64, err error) {
reader.go#L138: func (r *Reader) WriteTo(w io.Writer) (n int64, err error) {
compress/flate
deflate.go#L578: func (d *compressor) init(w io.Writer, level int) (err error) {
deflate.go#L611: func (d *compressor) reset(w io.Writer) {
deflate.go#L669: func NewWriter(w io.Writer, level int) (*Writer, error) {
deflate.go#L683: func NewWriterDict(w io.Writer, level int, dict []byte) (*Writer, error) {
deflate.go#L695: w io.Writer
deflate.go#L738: func (w *Writer) Reset(dst io.Writer) {
huffman_bit_writer.go#L75: writer io.Writer
huffman_bit_writer.go#L94: func newHuffmanBitWriter(w io.Writer) *huffmanBitWriter {
huffman_bit_writer.go#L106: func (w *huffmanBitWriter) reset(writer io.Writer) {
compress/gzip
gzip.go#L30: w io.Writer
gzip.go#L49: func NewWriter(w io.Writer) *Writer {
gzip.go#L60: func NewWriterLevel(w io.Writer, level int) (*Writer, error) {
gzip.go#L69: func (z *Writer) init(w io.Writer, level int) {
gzip.go#L88: func (z *Writer) Reset(w io.Writer) {
crypto/cipher
io.go#L32: W io.Writer
crypto/tls
common.go#L689: KeyLogWriter io.Writer
encoding/base64
base64.go#L186: w io.Writer
base64.go#L257: func NewEncoder(enc *Encoding, w io.Writer) io.WriteCloser {
encoding/binary
binary.go#L271: func Write(w io.Writer, order ByteOrder, data interface{}) error {
encoding/gob
encoder.go#L19: w []io.Writer // where to send the data
encoder.go#L34: func NewEncoder(w io.Writer) *Encoder {
encoder.go#L36: enc.w = []io.Writer{w}
encoder.go#L43: func (enc *Encoder) writer() io.Writer {
encoder.go#L48: func (enc *Encoder) pushWriter(w io.Writer) {
encoder.go#L64: func (enc *Encoder) writeMessage(w io.Writer, b *encBuffer) {
encoder.go#L93: func (enc *Encoder) sendActualType(w io.Writer, state *encoderState, ut *userTypeInfo, actual reflect.Type) (sent bool) {
encoder.go#L135: func (enc *Encoder) sendType(w io.Writer, state *encoderState, origt reflect.Type) (sent bool) {
encoder.go#L182: func (enc *Encoder) sendTypeDescriptor(w io.Writer, state *encoderState, ut *userTypeInfo) {
encoding/hex
hex.go#L141: w io.Writer
hex.go#L147: func NewEncoder(w io.Writer) io.Writer {
hex.go#L215: func Dumper(w io.Writer) io.WriteCloser {
hex.go#L220: w io.Writer
encoding/json
stream.go#L182: w io.Writer
stream.go#L192: func NewEncoder(w io.Writer) *Encoder {
encoding/pem
pem.go#L214: out io.Writer
pem.go#L258: func writeHeader(out io.Writer, k, v string) error {
pem.go#L264: func Encode(out io.Writer, b *Block) error {
flag
flag.go#L340: output io.Writer // nil means stderr; use Output() accessor
flag.go#L367: func (f *FlagSet) Output() io.Writer {
flag.go#L386: func (f *FlagSet) SetOutput(output io.Writer) {
fmt
print.go#L202: func Fprintf(w io.Writer, format string, a ...interface{}) (n int, err error) {
print.go#L230: func Fprint(w io.Writer, a ...interface{}) (n int, err error) {
print.go#L262: func Fprintln(w io.Writer, a ...interface{}) (n int, err error) {
go.etcd.io/bbolt
tx.go#L328: func (tx *Tx) Copy(w io.Writer) error {
tx.go#L335: func (tx *Tx) WriteTo(w io.Writer) (n int64, err error) {
hash
hash.go#L29: io.Writer
log
log.go#L56: out io.Writer // destination for output
log.go#L65: func New(out io.Writer, prefix string, flag int) *Logger {
log.go#L70: func (l *Logger) SetOutput(w io.Writer) {
log.go#L272: func (l *Logger) Writer() io.Writer {
log.go#L279: func SetOutput(w io.Writer) {
log.go#L308: func Writer() io.Writer {
mime/multipart
writer.go#L20: w io.Writer
writer.go#L27: func NewWriter(w io.Writer) *Writer {
writer.go#L97: func (w *Writer) CreatePart(header textproto.MIMEHeader) (io.Writer, error) {
writer.go#L140: func (w *Writer) CreateFormFile(fieldname, filename string) (io.Writer, error) {
writer.go#L151: func (w *Writer) CreateFormField(fieldname string) (io.Writer, error) {
mime/quotedprintable
writer.go#L17: w io.Writer
writer.go#L24: func NewWriter(w io.Writer) *Writer {
net
net.go#L648: io.Writer
net.go#L653: func genericReadFrom(w io.Writer, r io.Reader) (n int64, err error) {
net.go#L699: func (v *Buffers) WriteTo(w io.Writer) (n int64, err error) {
net/http
h2_bundle.go#L1525: w io.Writer
h2_bundle.go#L1668: func http2NewFramer(w io.Writer, r io.Reader) *http2Framer {
h2_bundle.go#L3317: w io.Writer // immutable
h2_bundle.go#L3321: func http2newBufferedWriter(w io.Writer) *http2bufferedWriter {
h2_bundle.go#L3479: io.Writer
h2_bundle.go#L6897: w io.Writer
header.go#L81: func (h Header) Write(w io.Writer) error {
header.go#L85: func (h Header) write(w io.Writer, trace *httptrace.ClientTrace) error {
header.go#L133: w io.Writer
header.go#L182: func (h Header) WriteSubset(w io.Writer, exclude map[string]bool) error {
header.go#L186: func (h Header) writeSubset(w io.Writer, exclude map[string]bool, trace *httptrace.ClientTrace) error {
http.go#L119: func (noBody) WriteTo(io.Writer) (int64, error) { return 0, nil }
request.go#L526: func (r *Request) Write(w io.Writer) error {
request.go#L536: func (r *Request) WriteProxy(w io.Writer) error {
request.go#L547: func (r *Request) write(w io.Writer, usingProxy bool, extraHeaders Header, waitForContinue func() bool) (err error) {
response.go#L245: func (r *Response) Write(w io.Writer) error {
response.go#L351: _, ok := r.Body.(io.Writer)
server.go#L561: io.Writer
server.go#L853: func newBufioWriterSize(w io.Writer, size int) *bufio.Writer {
transfer.go#L273: func (t *transferWriter) writeHeader(w io.Writer, trace *httptrace.ClientTrace) error {
transfer.go#L333: func (t *transferWriter) writeBody(w io.Writer) (err error) {
transfer.go#L408: func (t *transferWriter) doBodyCopy(dst io.Writer, src io.Reader) (n int64, err error) {
transfer.go#L1098: type bufioFlushWriter struct{ w io.Writer }
net/http/internal
chunked.go#L183: func NewChunkedWriter(w io.Writer) io.WriteCloser {
chunked.go#L190: Wire io.Writer
os
file.go#L164: io.Writer
os/exec
exec.go#L115: Stdout io.Writer
exec.go#L116: Stderr io.Writer
exec.go#L289: func (c *Cmd) writerDescriptor(w io.Writer) (f *os.File, err error) {
runtime/pprof
pprof.go#L138: write func(io.Writer, int) error
pprof.go#L326: func (p *Profile) WriteTo(w io.Writer, debug int) error {
pprof.go#L377: func printCountCycleProfile(w io.Writer, countName, cycleName string, scaler func(int64, float64) (int64, float64), records []runtime.BlockProfileRecord) error {
pprof.go#L404: func printCountProfile(w io.Writer, debug int, name string, p countProfile) error {
pprof.go#L492: func printStackRecord(w io.Writer, stk []uintptr, allFrames bool) {
pprof.go#L524: func WriteHeapProfile(w io.Writer) error {
pprof.go#L535: func writeHeap(w io.Writer, debug int) error {
pprof.go#L541: func writeAlloc(w io.Writer, debug int) error {
pprof.go#L545: func writeHeapInternal(w io.Writer, debug int, defaultSampleType string) error {
pprof.go#L662: func writeThreadCreate(w io.Writer, debug int) error {
pprof.go#L680: func writeGoroutine(w io.Writer, debug int) error {
pprof.go#L687: func writeGoroutineStacks(w io.Writer) error {
pprof.go#L708: func writeRuntimeProfile(w io.Writer, debug int, name string, fetch func([]runtime.StackRecord, []unsafe.Pointer) (int, bool)) error {
pprof.go#L761: func StartCPUProfile(w io.Writer) error {
pprof.go#L795: func profileWriter(w io.Writer) {
pprof.go#L845: func writeBlock(w io.Writer, debug int) error {
pprof.go#L896: func writeMutex(w io.Writer, debug int) error {
pprof_rusage.go#L17: func addMaxRSS(w io.Writer) {
proto.go#L39: w io.Writer
proto.go#L256: func newProfileBuilder(w io.Writer) *profileBuilder {
protomem.go#L15: func writeHeapProto(w io.Writer, p []runtime.MemProfileRecord, rate int64, defaultSampleType string) error {
runtime/trace
trace.go#L120: func Start(w io.Writer) error {
src.elv.sh/pkg/cli/term
writer.go#L30: file io.Writer
writer.go#L35: func NewWriter(f io.Writer) Writer {
src.elv.sh/pkg/diag
show_error.go#L10: func ShowError(w io.Writer, err error) {
show_error.go#L19: func Complain(w io.Writer, msg string) {
show_error.go#L24: func Complainf(w io.Writer, format string, args ...interface{}) {
src.elv.sh/pkg/eval
compiler.go#L24: warn io.Writer
compiler.go#L42: func compile(b, g *staticNs, tree parse.Tree, w io.Writer) (op nsOp, err error) {
eval.go#L512: func (ev *Evaler) Check(src parse.Source, w io.Writer) (*parse.Error, *diag.Error) {
eval.go#L519: func (ev *Evaler) CheckTree(tree parse.Tree, w io.Writer) *diag.Error {
eval.go#L525: func (ev *Evaler) compile(tree parse.Tree, g *Ns, w io.Writer) (nsOp, error) {
src.elv.sh/pkg/logutil
logutil.go#L29: func SetOutput(newout io.Writer) {
src.elv.sh/pkg/parse
parse.go#L32: WarningWriter io.Writer
parser.go#L24: warn io.Writer
pprint.go#L17: func pprintAST(n Node, w io.Writer) {
pprint.go#L29: func pprintASTRec(n Node, wr io.Writer, indent int, leading string) {
pprint.go#L110: func pprintParseTree(n Node, w io.Writer) {
pprint.go#L114: func pprintParseTreeRec(n Node, wr io.Writer, indent int) {
src.elv.sh/pkg/prog
prog.go#L53: func newFlagSet(stderr io.Writer, f *Flags) *flag.FlagSet {
prog.go#L87: func usage(out io.Writer, f *flag.FlagSet) {
src.elv.sh/pkg/shell
editor.go#L22: out io.Writer
paths.go#L26: func MakePaths(stderr io.Writer, overrides Paths) Paths {
paths.go#L51: func setDir(p *string, what string, f func() (string, error), stderr io.Writer) {
runtime.go#L51: func InitRuntime(stderr io.Writer, p Paths, spawn bool) *eval.Evaler {
runtime.go#L88: func CleanupRuntime(stderr io.Writer, ev *eval.Evaler) {
runtime.go#L99: func connectToDaemon(stderr io.Writer, spawnCfg *daemon.SpawnConfig) (daemon.Client, error) {
strings
reader.go#L137: func (r *Reader) WriteTo(w io.Writer) (n int64, err error) {
replace.go#L23: WriteString(w io.Writer, s string) (n int, err error)
replace.go#L101: func (r *Replacer) WriteString(w io.Writer, s string) (n int, err error) {
replace.go#L315: w io.Writer
replace.go#L322: func getStringWriter(w io.Writer) io.StringWriter {
replace.go#L336: func (r *genericReplacer) WriteString(w io.Writer, s string) (n int, err error) {
replace.go#L409: func (r *singleStringReplacer) WriteString(w io.Writer, s string) (n int, err error) {
replace.go#L456: func (r *byteReplacer) WriteString(w io.Writer, s string) (n int, err error) {
replace.go#L540: func (r *byteStringReplacer) WriteString(w io.Writer, s string) (n int, err error) {
testing
benchmark.go#L452: func prettyPrint(w io.Writer, x float64, unit string) {
testing.go#L339: w io.Writer
testing.go#L344: func newChattyPrinter(w io.Writer) *chattyPrinter {
testing.go#L388: w io.Writer // For flushToParent.
testing.go#L1318: func (f matchStringOnly) StartCPUProfile(w io.Writer) error { return errMain }
testing.go#L1320: func (f matchStringOnly) WriteProfileTo(string, io.Writer, int) error { return errMain }
testing.go#L1322: func (f matchStringOnly) StartTestLog(io.Writer) {}
testing.go#L1361: StartCPUProfile(io.Writer) error
testing.go#L1363: StartTestLog(io.Writer)
testing.go#L1365: WriteProfileTo(string, io.Writer, int) error
text/tabwriter
tabwriter.go#L93: output io.Writer
tabwriter.go#L211: func (b *Writer) Init(output io.Writer, minwidth, tabwidth, padding int, padchar byte, flags uint) *Writer {
tabwriter.go#L607: func NewWriter(output io.Writer, minwidth, tabwidth, padding int, padchar byte, flags uint) *Writer {
vendor/golang.org/x/net/http2/hpack
encode.go#L29: w io.Writer
encode.go#L35: func NewEncoder(w io.Writer) *Encoder {
huffman.go#L21: func HuffmanDecode(w io.Writer, v []byte) (int, error) {
vendor/golang.org/x/text/transform
transform.go#L210: w io.Writer
transform.go#L221: func NewWriter(w io.Writer, t Transformer) *Writer {
vendor/golang.org/x/text/unicode/norm
readwriter.go#L11: w io.Writer
readwriter.go#L66: func (f Form) Writer(w io.Writer) io.WriteCloser {