type io.Writer
285 uses
io (current package)
io.go#L99: type Writer interface {
io.go#L133: Writer
io.go#L144: Writer
io.go#L151: Writer
io.go#L171: Writer
io.go#L178: Writer
io.go#L201: WriteTo(w Writer) (n int64, err error)
io.go#L314: func WriteString(w Writer, s string) (n int, err error) {
io.go#L363: func CopyN(dst Writer, src Reader, n int64) (written int64, err error) {
io.go#L387: func Copy(dst Writer, src Reader) (written int64, err error) {
io.go#L398: func CopyBuffer(dst Writer, src Reader, buf []byte) (written int64, err error) {
io.go#L407: func copyBuffer(dst Writer, src Reader, buf []byte) (written int64, err error) {
io.go#L618: func TeeReader(r Reader, w Writer) Reader {
io.go#L624: w Writer
io.go#L639: var Discard Writer = discard{}
io.go#L701: func (c nopCloserWriterTo) WriteTo(w Writer) (n int64, err error) {
multi.go#L44: func (mr *multiReader) WriteTo(w Writer) (sum int64, err error) {
multi.go#L48: func (mr *multiReader) writeToWithBuffer(w Writer, buf []byte) (sum int64, err error) {
multi.go#L80: writers []Writer
multi.go#L127: func MultiWriter(writers ...Writer) Writer {
multi.go#L128: allWriters := make([]Writer, 0, len(writers))
io/ioutil
ioutil.go#L98: var Discard io.Writer = io.Discard
bufio
bufio.go#L518: func (b *Reader) WriteTo(w io.Writer) (n int64, err error) {
bufio.go#L563: func (b *Reader) writeBuf(w io.Writer) (int64, error) {
bufio.go#L584: wr io.Writer
bufio.go#L590: func NewWriterSize(w io.Writer, size int) *Writer {
bufio.go#L608: func NewWriter(w io.Writer) *Writer {
bufio.go#L620: func (b *Writer) Reset(w io.Writer) {
bytes
buffer.go#L258: func (b *Buffer) WriteTo(w io.Writer) (n int64, err error) {
reader.go#L137: func (r *Reader) WriteTo(w io.Writer) (n int64, err error) {
compress/flate
deflate.go#L569: func (d *compressor) init(w io.Writer, level int) (err error) {
deflate.go#L602: func (d *compressor) reset(w io.Writer) {
deflate.go#L662: func NewWriter(w io.Writer, level int) (*Writer, error) {
deflate.go#L676: func NewWriterDict(w io.Writer, level int, dict []byte) (*Writer, error) {
deflate.go#L688: w io.Writer
deflate.go#L733: 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/internal/fips140
hash.go#L15: io.Writer
crypto/internal/fips140/check
check.go#L68: w := io.Writer(h)
crypto/tls
common.go#L798: KeyLogWriter io.Writer
encoding/base64
base64.go#L215: w io.Writer
base64.go#L284: func NewEncoder(enc *Encoding, w io.Writer) io.WriteCloser {
encoding/binary
binary.go#L410: func Write(w io.Writer, order ByteOrder, data any) error {
encoding/hex
hex.go#L167: w io.Writer
hex.go#L173: func NewEncoder(w io.Writer) io.Writer {
hex.go#L242: func Dumper(w io.Writer) io.WriteCloser {
hex.go#L247: w io.Writer
encoding/json
stream.go#L182: w io.Writer
stream.go#L192: func NewEncoder(w io.Writer) *Encoder {
encoding/pem
pem.go#L190: out io.Writer
pem.go#L234: func writeHeader(out io.Writer, k, v string) error {
pem.go#L240: func Encode(out io.Writer, b *Block) error {
flag
flag.go#L403: output io.Writer // nil means stderr; use Output() accessor
flag.go#L431: func (f *FlagSet) Output() io.Writer {
flag.go#L450: func (f *FlagSet) SetOutput(output io.Writer) {
fmt
print.go#L222: func Fprintf(w io.Writer, format string, a ...any) (n int, err error) {
print.go#L260: func Fprint(w io.Writer, a ...any) (n int, err error) {
print.go#L302: func Fprintln(w io.Writer, a ...any) (n int, err error) {
github.com/golang/protobuf/jsonpb
encode.go#L66: func (jm *Marshaler) Marshal(w io.Writer, m proto.Message) error {
github.com/golang/protobuf/proto
text_encode.go#L32: func (tm *TextMarshaler) Marshal(w io.Writer, m Message) error {
text_encode.go#L97: func MarshalText(w io.Writer, m Message) error { return defaultTextMarshaler.Marshal(w, m) }
text_encode.go#L103: func CompactText(w io.Writer, m Message) error { return compactTextMarshaler.Marshal(w, m) }
github.com/kr/text
indent.go#L30: w io.Writer
indent.go#L41: func NewIndentWriter(w io.Writer, pre ...[]byte) io.Writer {
go.pact.im/x/goupdate
htmlgen.go#L21: w io.Writer
htmlgen.go#L26: func generateHTML(w io.Writer, r *report) error {
textgen.go#L17: func generateText(w io.Writer, r *report) error {
textgen.go#L328: wr io.Writer
textgen.go#L329: indent io.Writer
textgen.go#L333: func newSectionIndentWriter(wr io.Writer, pre string) *sectionIndentWriter {
textgen.go#L353: func (w *sectionIndentWriter) writer() io.Writer {
go.pact.im/x/zaplog
zaplog.go#L12: func New(w io.Writer) *zap.Logger {
go.uber.org/goleak
testmain.go#L32: _osStderr io.Writer = os.Stderr
go.uber.org/multierr
error.go#L292: func (merr *multiError) writeSingleline(w io.Writer) {
error.go#L304: func (merr *multiError) writeMultiline(w io.Writer) {
error.go#L314: func writePrefixLine(w io.Writer, prefix []byte, s string) {
go.uber.org/zap/zapcore
encoder.go#L340: NewReflectedEncoder func(io.Writer) ReflectedEncoder `json:"-" yaml:"-"`
reflected_encoder.go#L36: func defaultReflectedEncoder(w io.Writer) ReflectedEncoder {
write_syncer.go#L33: io.Writer
write_syncer.go#L40: func AddSync(w io.Writer) WriteSyncer {
write_syncer.go#L79: io.Writer
go/ast
print.go#L39: func Fprint(w io.Writer, fset *token.FileSet, x any, f FieldFilter) error {
print.go#L43: func fprint(w io.Writer, fset *token.FileSet, x any, f FieldFilter) (err error) {
print.go#L78: output io.Writer
go/doc
comment.go#L32: func ToHTML(w io.Writer, text string, words map[string]string) {
comment.go#L63: func ToText(w io.Writer, text string, prefix, codePrefix string, width int) {
go/format
format.go#L53: func Node(dst io.Writer, fset *token.FileSet, node any) error {
go/printer
printer.go#L1192: output io.Writer
printer.go#L1360: func (cfg *Config) fprint(output io.Writer, fset *token.FileSet, node any, nodeSizes map[ast.Node]int) (err error) {
printer.go#L1423: func (cfg *Config) Fprint(output io.Writer, fset *token.FileSet, node any) error {
printer.go#L1431: func Fprint(output io.Writer, fset *token.FileSet, node any) error {
go/scanner
errors.go#L112: func PrintError(w io.Writer, err error) {
go/types
scope.go#L138: func (s *Scope) WriteTo(w io.Writer, n int, recurse bool) {
golang.org/x/crypto/blake2b
blake2x.go#L20: io.Writer
golang.org/x/exp/apidiff
report.go#L38: func (r Report) Text(w io.Writer) error {
report.go#L45: func (r Report) TextIncompatible(w io.Writer, withHeader bool) error {
report.go#L52: func (r Report) TextCompatible(w io.Writer) error {
report.go#L56: func (r Report) writeMessages(w io.Writer, header string, msgs []string) error {
golang.org/x/net/http2
frame.go#L295: w io.Writer
frame.go#L435: func NewFramer(w io.Writer, r io.Reader) *Framer {
pipe.go#L29: io.Writer
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) {
golang.org/x/net/trace
events.go#L374: func printStackRecord(w io.Writer, stk []uintptr) {
trace.go#L180: func Render(w io.Writer, req *http.Request, sensitive bool) {
golang.org/x/text/transform
transform.go#L210: w io.Writer
transform.go#L221: func NewWriter(w io.Writer, t Transformer) *Writer {
golang.org/x/text/unicode/norm
readwriter.go#L11: w io.Writer
readwriter.go#L66: func (f Form) Writer(w io.Writer) io.WriteCloser {
golang.org/x/tools/go/gcexportdata
gcexportdata.go#L205: func Write(out io.Writer, fset *token.FileSet, pkg *types.Package) error {
gcexportdata.go#L234: func WriteBundle(out io.Writer, fset *token.FileSet, pkgs []*types.Package) error {
golang.org/x/tools/internal/event/keys
keys.go#L30: func (k *Value) Format(w io.Writer, buf []byte, l label.Label) {
keys.go#L65: func (k *Tag) Format(w io.Writer, buf []byte, l label.Label) {}
keys.go#L84: func (k *Int) Format(w io.Writer, buf []byte, l label.Label) {
keys.go#L116: func (k *Int8) Format(w io.Writer, buf []byte, l label.Label) {
keys.go#L148: func (k *Int16) Format(w io.Writer, buf []byte, l label.Label) {
keys.go#L180: func (k *Int32) Format(w io.Writer, buf []byte, l label.Label) {
keys.go#L212: func (k *Int64) Format(w io.Writer, buf []byte, l label.Label) {
keys.go#L244: func (k *UInt) Format(w io.Writer, buf []byte, l label.Label) {
keys.go#L276: func (k *UInt8) Format(w io.Writer, buf []byte, l label.Label) {
keys.go#L308: func (k *UInt16) Format(w io.Writer, buf []byte, l label.Label) {
keys.go#L340: func (k *UInt32) Format(w io.Writer, buf []byte, l label.Label) {
keys.go#L372: func (k *UInt64) Format(w io.Writer, buf []byte, l label.Label) {
keys.go#L404: func (k *Float32) Format(w io.Writer, buf []byte, l label.Label) {
keys.go#L440: func (k *Float64) Format(w io.Writer, buf []byte, l label.Label) {
keys.go#L476: func (k *String) Format(w io.Writer, buf []byte, l label.Label) {
keys.go#L508: func (k *Boolean) Format(w io.Writer, buf []byte, l label.Label) {
keys.go#L545: func (k *Error) Format(w io.Writer, buf []byte, l label.Label) {
golang.org/x/tools/internal/event/label
label.go#L28: Format(w io.Writer, buf []byte, l Label)
golang.org/x/tools/internal/gcimporter
iexport.go#L325: func IExportData(out io.Writer, fset *token.FileSet, pkg *types.Package) error {
iexport.go#L331: func IExportBundle(out io.Writer, fset *token.FileSet, pkgs []*types.Package) error {
iexport.go#L336: func iexportCommon(out io.Writer, fset *token.FileSet, bundle, shallow bool, version int, pkgs []*types.Package, reportf ReportFunc) (err error) {
golang.org/x/tools/internal/gocommand
invoke.go#L80: func (runner *Runner) RunPiped(ctx context.Context, inv Invocation, stdout, stderr io.Writer) error {
invoke.go#L129: func (runner *Runner) runPiped(ctx context.Context, inv Invocation, stdout, stderr io.Writer) (error, error) {
invoke.go#L186: func (i *Invocation) runWithFriendlyError(ctx context.Context, stdout, stderr io.Writer) (friendlyError error, rawError error) {
invoke.go#L209: func (i *Invocation) run(ctx context.Context, stdout, stderr io.Writer) error {
golang.org/x/tools/internal/pkgbits
encoder.go#L57: func (pw *PkgEncoder) DumpTo(out0 io.Writer) (fingerprint [8]byte) {
google.golang.org/grpc
rpc_util.go#L49: Do(w io.Writer, p []byte) error
rpc_util.go#L89: func (c *gzipCompressor) Do(w io.Writer, p []byte) error {
google.golang.org/grpc/encoding
encoding.go#L45: Compress(w io.Writer) (io.WriteCloser, error)
google.golang.org/grpc/grpclog
loggerv2.go#L110: func NewLoggerV2(infoW, warningW, errorW io.Writer) LoggerV2 {
loggerv2.go#L116: func NewLoggerV2WithVerbosity(infoW, warningW, errorW io.Writer, v int) LoggerV2 {
loggerv2.go#L125: func newLoggerV2WithConfig(infoW, warningW, errorW io.Writer, c loggerV2Config) LoggerV2 {
google.golang.org/grpc/internal/binarylog
sink.go#L61: func newWriterSink(w io.Writer) Sink {
sink.go#L66: out io.Writer
hash
hash.go#L29: io.Writer
html/template
escape.go#L962: func HTMLEscape(w io.Writer, b []byte) {
escape.go#L978: func JSEscape(w io.Writer, b []byte) {
template.go#L120: func (t *Template) Execute(wr io.Writer, data any) error {
template.go#L134: func (t *Template) ExecuteTemplate(wr io.Writer, name string, data any) error {
internal/profile
profile.go#L174: func (p *Profile) Write(w io.Writer) error {
log
log.go#L59: out io.Writer // destination for output
log.go#L71: func New(out io.Writer, prefix string, flag int) *Logger {
log.go#L80: func (l *Logger) SetOutput(w io.Writer) {
log.go#L346: func (l *Logger) Writer() io.Writer {
log.go#L353: func SetOutput(w io.Writer) {
log.go#L380: func Writer() io.Writer {
mime/multipart
formdata.go#L190: type writerOnly struct{ io.Writer }
writer.go#L21: w io.Writer
writer.go#L28: func NewWriter(w io.Writer) *Writer {
writer.go#L98: func (w *Writer) CreatePart(header textproto.MIMEHeader) (io.Writer, error) {
writer.go#L136: func (w *Writer) CreateFormFile(fieldname, filename string) (io.Writer, error) {
writer.go#L147: 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#L776: func (noWriteTo) WriteTo(io.Writer) (int64, error) {
net.go#L789: func genericWriteTo(c *TCPConn, w io.Writer) (n int64, err error) {
net.go#L846: func (v *Buffers) WriteTo(w io.Writer) (n int64, err error) {
splice_linux.go#L56: func spliceTo(w io.Writer, c *netFD) (written int64, err error, handled bool) {
tcpsock.go#L173: func (c *TCPConn) WriteTo(w io.Writer) (int64, error) {
tcpsock_posix.go#L57: func (c *TCPConn) writeTo(w io.Writer) (int64, error) {
net/http
h2_bundle.go#L1858: w io.Writer
h2_bundle.go#L2001: func http2NewFramer(w io.Writer, r io.Reader) *http2Framer {
h2_bundle.go#L3946: io.Writer
header.go#L85: func (h Header) Write(w io.Writer) error {
header.go#L89: func (h Header) write(w io.Writer, trace *httptrace.ClientTrace) error {
header.go#L143: w io.Writer
header.go#L186: func (h Header) WriteSubset(w io.Writer, exclude map[string]bool) error {
header.go#L190: func (h Header) writeSubset(w io.Writer, exclude map[string]bool, trace *httptrace.ClientTrace) error {
http.go#L177: func (noBody) WriteTo(io.Writer) (int64, error) { return 0, nil }
request.go#L561: func (r *Request) Write(w io.Writer) error {
request.go#L571: func (r *Request) WriteProxy(w io.Writer) error {
request.go#L582: 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#L350: _, ok := r.Body.(io.Writer)
server.go#L580: io.Writer
server.go#L885: func newBufioWriterSize(w io.Writer, size int) *bufio.Writer {
transfer.go#L278: func (t *transferWriter) writeHeader(w io.Writer, trace *httptrace.ClientTrace) error {
transfer.go#L338: func (t *transferWriter) writeBody(w io.Writer) (err error) {
transfer.go#L413: func (t *transferWriter) doBodyCopy(dst io.Writer, src io.Reader) (n int64, err error) {
transfer.go#L1129: type bufioFlushWriter struct{ w io.Writer }
net/http/httputil
dump.go#L42: io.Writer
dump.go#L270: var dest io.Writer = &b
httputil.go#L35: func NewChunkedWriter(w io.Writer) io.WriteCloser {
persist.go#L240: writeReq func(*http.Request, io.Writer) error
reverseproxy.go#L614: var w io.Writer = dst
reverseproxy.go#L642: func (p *ReverseProxy) copyBuffer(dst io.Writer, src io.Reader, buf []byte) (int64, error) {
reverseproxy.go#L682: dst io.Writer
net/http/internal
chunked.go#L225: func NewChunkedWriter(w io.Writer) io.WriteCloser {
chunked.go#L232: Wire io.Writer
net/http/pprof
pprof.go#L425: func indexTmplExecute(w io.Writer, profiles []profileEntry) error {
os
file.go#L245: func (f *File) WriteTo(w io.Writer) (n int64, err error) {
file.go#L262: func (noWriteTo) WriteTo(io.Writer) (int64, error) {
file.go#L274: func genericWriteTo(f *File, w io.Writer) (int64, error) {
zero_copy_linux.go#L18: func (f *File) writeTo(w io.Writer) (written int64, handled bool, err error) {
os/exec
exec.go#L223: Stdout io.Writer
exec.go#L224: Stderr io.Writer
exec.go#L574: func (c *Cmd) writerDescriptor(w io.Writer) (*os.File, error) {
runtime/pprof
pprof.go#L183: write func(io.Writer, int) error
pprof.go#L372: func (p *Profile) WriteTo(w io.Writer, debug int) error {
pprof.go#L433: func printCountCycleProfile(w io.Writer, countName, cycleName string, records []profilerecord.BlockProfileRecord) error {
pprof.go#L461: func printCountProfile(w io.Writer, debug int, name string, p countProfile) error {
pprof.go#L549: func printStackRecord(w io.Writer, stk []uintptr, allFrames bool) {
pprof.go#L581: func WriteHeapProfile(w io.Writer) error {
pprof.go#L592: func writeHeap(w io.Writer, debug int) error {
pprof.go#L598: func writeAlloc(w io.Writer, debug int) error {
pprof.go#L602: func writeHeapInternal(w io.Writer, debug int, defaultSampleType string) error {
pprof.go#L736: func writeThreadCreate(w io.Writer, debug int) error {
pprof.go#L751: func writeGoroutine(w io.Writer, debug int) error {
pprof.go#L758: func writeGoroutineStacks(w io.Writer) error {
pprof.go#L779: func writeRuntimeProfile(w io.Writer, debug int, name string, fetch func([]profilerecord.StackRecord, []unsafe.Pointer) (int, bool)) error {
pprof.go#L833: func StartCPUProfile(w io.Writer) error {
pprof.go#L867: func profileWriter(w io.Writer) {
pprof.go#L917: func writeBlock(w io.Writer, debug int) error {
pprof.go#L922: func writeMutex(w io.Writer, debug int) error {
pprof.go#L927: func writeProfileInternal(w io.Writer, debug int, name string, runtimeProfile func([]profilerecord.BlockProfileRecord) (int, bool)) error {
pprof_rusage.go#L17: func addMaxRSS(w io.Writer) {
proto.go#L35: w io.Writer
proto.go#L259: func newProfileBuilder(w io.Writer) *profileBuilder {
protomem.go#L16: func writeHeapProto(w io.Writer, p []profilerecord.MemProfileRecord, rate int64, defaultSampleType string) error {
runtime/trace
trace.go#L121: func Start(w io.Writer) 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#L410: func (r *singleStringReplacer) WriteString(w io.Writer, s string) (n int, err error) {
replace.go#L457: func (r *byteReplacer) WriteString(w io.Writer, s string) (n int, err error) {
replace.go#L550: func (r *byteStringReplacer) WriteString(w io.Writer, s string) (n int, err error) {
testing
benchmark.go#L619: func prettyPrint(w io.Writer, x float64, unit string) {
fuzz.go#L276: run := func(captureOut io.Writer, e corpusEntry) (ok bool) {
testing.go#L567: w io.Writer
testing.go#L573: func newChattyPrinter(w io.Writer) *chattyPrinter {
testing.go#L628: w io.Writer // For flushToParent.
testing.go#L1948: func (f matchStringOnly) StartCPUProfile(w io.Writer) error { return errMain }
testing.go#L1950: func (f matchStringOnly) WriteProfileTo(string, io.Writer, int) error { return errMain }
testing.go#L1952: func (f matchStringOnly) StartTestLog(io.Writer) {}
testing.go#L2006: StartCPUProfile(io.Writer) error
testing.go#L2008: StartTestLog(io.Writer)
testing.go#L2010: WriteProfileTo(string, io.Writer, int) error
testing/iotest
logger.go#L14: w io.Writer
logger.go#L30: func NewWriteLogger(prefix string, w io.Writer) io.Writer {
writer.go#L11: func TruncateWriter(w io.Writer, n int64) io.Writer {
writer.go#L16: w io.Writer
text/tabwriter
tabwriter.go#L92: output io.Writer
tabwriter.go#L209: func (b *Writer) Init(output io.Writer, minwidth, tabwidth, padding int, padchar byte, flags uint) *Writer {
tabwriter.go#L599: func NewWriter(output io.Writer, minwidth, tabwidth, padding int, padchar byte, flags uint) *Writer {
text/template
exec.go#L36: wr io.Writer
exec.go#L188: func (t *Template) ExecuteTemplate(wr io.Writer, name string, data any) error {
exec.go#L206: func (t *Template) Execute(wr io.Writer, data any) error {
exec.go#L210: func (t *Template) execute(wr io.Writer, data any) (err error) {
funcs.go#L619: func HTMLEscape(w io.Writer, b []byte) {
funcs.go#L679: func JSEscape(w io.Writer, b []byte) {
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 {