type io.Writer
227 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))
bufio
bufio.go#L515: func (b *Reader) WriteTo(w io.Writer) (n int64, err error) {
bufio.go#L562: func (b *Reader) writeBuf(w io.Writer) (int64, error) {
bufio.go#L583: wr io.Writer
bufio.go#L589: func NewWriterSize(w io.Writer, size int) *Writer {
bufio.go#L607: func NewWriter(w io.Writer) *Writer {
bufio.go#L619: func (b *Writer) Reset(w io.Writer) {
bytes
buffer.go#L276: 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#L571: func (d *compressor) init(w io.Writer, level int) (err error) {
deflate.go#L604: func (d *compressor) reset(w io.Writer) {
deflate.go#L664: func NewWriter(w io.Writer, level int) (*Writer, error) {
deflate.go#L678: func NewWriterDict(w io.Writer, level int, dict []byte) (*Writer, error) {
deflate.go#L690: w io.Writer
deflate.go#L735: 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) {
compress/zlib
writer.go#L29: w io.Writer
writer.go#L44: func NewWriter(w io.Writer) *Writer {
writer.go#L55: func NewWriterLevel(w io.Writer, level int) (*Writer, error) {
writer.go#L64: func NewWriterLevelDict(w io.Writer, level int, dict []byte) (*Writer, error) {
writer.go#L78: func (z *Writer) Reset(w io.Writer) {
crypto/cipher
io.go#L32: W io.Writer
crypto/internal/fips140/check
check.go#L68: w := io.Writer(h)
crypto/tls
common.go#L831: 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#L184: w io.Writer
stream.go#L194: func NewEncoder(w io.Writer) *Encoder {
encoding/pem
pem.go#L205: out io.Writer
pem.go#L249: func writeHeader(out io.Writer, k, v string) error {
pem.go#L255: func Encode(out io.Writer, b *Block) error {
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#L303: func Fprintln(w io.Writer, a ...any) (n int, err error) {
github.com/andybalholm/brotli
encode.go#L75: dst io.Writer
writer.go#L34: func NewWriter(dst io.Writer) *Writer {
writer.go#L42: func NewWriterLevel(dst io.Writer, level int) *Writer {
writer.go#L49: func NewWriterOptions(dst io.Writer, options WriterOptions) *Writer {
writer.go#L59: func (w *Writer) Reset(dst io.Writer) {
writer.go#L118: io.Writer
writer.go#L126: func NewWriterV2(dst io.Writer, level int) *matchfinder.Writer {
github.com/andybalholm/brotli/flate
writer.go#L12: func NewWriter(w io.Writer, level int) *matchfinder.Writer {
writer.go#L19: func NewGZIPWriter(w io.Writer, level int) *matchfinder.Writer {
writer.go#L23: func newWriter(w io.Writer, level int, e matchfinder.Encoder) *matchfinder.Writer {
github.com/andybalholm/brotli/matchfinder
matchfinder.go#L45: Dest io.Writer
matchfinder.go#L95: func (w *Writer) Reset(newDest io.Writer) {
github.com/coder/websocket
compress.go#L83: w io.Writer
compress.go#L152: func getFlateWriter(w io.Writer) *flate.Writer {
dial.go#L336: func getBufioWriter(w io.Writer) *bufio.Writer {
write.go#L413: func extractBufioWriterBuf(bw *bufio.Writer, w io.Writer) []byte {
github.com/go-faster/jx
enc.go#L34: func (e *Encoder) WriteTo(w io.Writer) (n int64, err error) {
enc.go#L57: func (e *Encoder) ResetWriter(out io.Writer) {
enc_stream.go#L11: func NewStreamingEncoder(w io.Writer, bufSize int) *Encoder {
w.go#L31: func (w *Writer) WriteTo(t io.Writer) (n int64, err error) {
w.go#L54: func (w *Writer) ResetWriter(out io.Writer) {
w_stream.go#L26: writer io.Writer
w_stream.go#L30: func newStreamState(w io.Writer) *streamState {
w_stream.go#L42: func (s *streamState) Reset(w io.Writer) {
github.com/gotd/td/mtproxy/faketls
client_hello.go#L70: w io.Writer,
record.go#L54: func writeRecord(w io.Writer, r record) (int, error) {
github.com/gotd/td/proto
gzip.go#L33: func (g *gzipPool) GetWriter(w io.Writer) *gzip.Writer {
github.com/gotd/td/proto/codec
abridged.go#L27: func (i Abridged) WriteHeader(w io.Writer) error {
abridged.go#L56: func (i Abridged) Write(w io.Writer, b *bin.Buffer) error {
abridged.go#L81: func writeAbridged(w io.Writer, b *bin.Buffer) error {
codec.go#L15: WriteHeader(w io.Writer) error
codec.go#L19: Write(w io.Writer, b *bin.Buffer) error
full.go#L22: func (i *Full) WriteHeader(w io.Writer) (err error) {
full.go#L32: func (i *Full) Write(w io.Writer, b *bin.Buffer) error {
full.go#L53: func writeFull(w io.Writer, seqNo int, b *bin.Buffer) error {
intermediate.go#L26: func (i Intermediate) WriteHeader(w io.Writer) (err error) {
intermediate.go#L54: func (i Intermediate) Write(w io.Writer, b *bin.Buffer) error {
intermediate.go#L80: func writeIntermediate(w io.Writer, b *bin.Buffer) error {
no_header.go#L11: func (NoHeader) WriteHeader(io.Writer) error {
padded_intermediate.go#L27: func (i PaddedIntermediate) WriteHeader(w io.Writer) error {
padded_intermediate.go#L55: func (i PaddedIntermediate) Write(w io.Writer, b *bin.Buffer) error {
padded_intermediate.go#L80: func writePaddedIntermediate(randSource io.Reader, w io.Writer, b *bin.Buffer) error {
github.com/gotd/td/session
storage_mem.go#L21: func (s *StorageMemory) Dump(w io.Writer) error {
github.com/gotd/td/session/tdesktop
file.go#L112: func writeFile(w io.Writer, data []byte, version [4]byte) error {
file.go#L167: func writeArray(writer io.Writer, data []byte, order binary.ByteOrder) error {
github.com/gotd/td/telegram/downloader
builder.go#L164: func (b *Builder) Stream(ctx context.Context, output io.Writer) (_ tg.StorageFileTypeClass, err error) {
sink.go#L30: func writeLoop(w io.Writer, toWrite <-chan block) func(context.Context) error {
stream.go#L13: func (d *Downloader) stream(ctx context.Context, r *reader, w io.Writer) (tg.StorageFileTypeClass, error) {
github.com/gotd/td/transport
codec.go#L12: WriteHeader(w io.Writer) error
codec.go#L16: Write(w io.Writer, b *bin.Buffer) error
obfuscated.go#L21: writer io.Writer
websocket.go#L116: writer io.Writer
github.com/klauspost/compress/flate
deflate.go#L787: func (d *compressor) init(w io.Writer, level int) (err error) {
deflate.go#L830: func (d *compressor) reset(w io.Writer) {
deflate.go#L894: func NewWriter(w io.Writer, level int) (*Writer, error) {
deflate.go#L908: func NewWriterDict(w io.Writer, level int, dict []byte) (*Writer, error) {
deflate.go#L926: func NewWriterWindow(w io.Writer, windowSize int) (*Writer, error) {
deflate.go#L976: func (w *Writer) Reset(dst io.Writer) {
deflate.go#L992: func (w *Writer) ResetDict(dst io.Writer, dict []byte) {
huffman_bit_writer.go#L102: writer io.Writer
huffman_bit_writer.go#L146: func newHuffmanBitWriter(w io.Writer) *huffmanBitWriter {
huffman_bit_writer.go#L156: func (w *huffmanBitWriter) reset(writer io.Writer) {
inflate.go#L415: func (f *decompressor) WriteTo(w io.Writer) (int64, error) {
stateless.go#L22: dst io.Writer
stateless.go#L43: func (s *statelessWriter) Reset(w io.Writer) {
stateless.go#L53: func NewStatelessWriter(dst io.Writer) io.WriteCloser {
stateless.go#L76: func StatelessDeflate(out io.Writer, in []byte, eof bool, dict []byte) error {
github.com/klauspost/compress/gzip
gunzip.go#L298: io.Writer
gunzip.go#L320: func (z *Reader) WriteTo(w io.Writer) (int64, error) {
gzip.go#L38: w io.Writer
gzip.go#L57: func NewWriter(w io.Writer) *Writer {
gzip.go#L68: func NewWriterLevel(w io.Writer, level int) (*Writer, error) {
gzip.go#L85: func NewWriterWindow(w io.Writer, windowSize int) (*Writer, error) {
gzip.go#L98: func (z *Writer) init(w io.Writer, level int) {
gzip.go#L120: func (z *Writer) Reset(w io.Writer) {
github.com/klauspost/compress/huff0
decompress.go#L1095: func (s *Scratch) matches(ct cTable, w io.Writer) {
github.com/klauspost/compress/internal/snapref
encode.go#L123: func NewWriter(w io.Writer) *Writer {
encode.go#L137: func NewBufferedWriter(w io.Writer) *Writer {
encode.go#L149: w io.Writer
encode.go#L168: func (w *Writer) Reset(writer io.Writer) {
github.com/klauspost/compress/zstd
decoder.go#L287: func (d *Decoder) WriteTo(w io.Writer) (int64, error) {
decoder.go#L619: func (c closeWrapper) WriteTo(w io.Writer) (n int64, err error) {
dict.go#L189: DebugOut io.Writer
encoder.go#L44: w io.Writer
encoder.go#L67: func NewWriter(w io.Writer, opts ...EOption) (*Encoder, error) {
encoder.go#L96: func (e *Encoder) Reset(w io.Writer) {
encoder.go#L138: func (e *Encoder) ResetWithOptions(w io.Writer, opts ...EOption) error {
encoder.go#L162: func (e *Encoder) ResetContentSize(w io.Writer, size int64) {
snappy.go#L82: func (r *SnappyConverter) Convert(in io.Reader, w io.Writer) (int64, error) {
zip.go#L117: func ZipCompressor(opts ...EOption) func(w io.Writer) (io.WriteCloser, error) {
zip.go#L119: return func(w io.Writer) (io.WriteCloser, error) {
github.com/refraction-networking/utls
common.go#L851: KeyLogWriter io.Writer
go.uber.org/multierr
error.go#L257: func (merr *multiError) writeSingleline(w io.Writer) {
error.go#L269: func (merr *multiError) writeMultiline(w io.Writer) {
error.go#L279: func writePrefixLine(w io.Writer, prefix []byte, s string) {
hash
hash.go#L29: io.Writer
hash.go#L78: io.Writer
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#L357: func (l *Logger) Writer() io.Writer {
log.go#L364: func SetOutput(w io.Writer) {
log.go#L391: 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#L148: func (w *Writer) CreateFormFile(fieldname, filename string) (io.Writer, error) {
writer.go#L157: 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#L781: func (noWriteTo) WriteTo(io.Writer) (int64, error) {
net.go#L794: func genericWriteTo(c *TCPConn, w io.Writer) (n int64, err error) {
net.go#L851: 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#L1860: w io.Writer
h2_bundle.go#L2003: func http2NewFramer(w io.Writer, r io.Reader) *http2Framer {
h2_bundle.go#L3881: 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#L179: 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#L583: io.Writer
server.go#L873: 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/internal
chunked.go#L225: func NewChunkedWriter(w io.Writer) io.WriteCloser {
chunked.go#L232: Wire io.Writer
os
file.go#L265: func (f *File) WriteTo(w io.Writer) (n int64, err error) {
file.go#L282: func (noWriteTo) WriteTo(io.Writer) (int64, error) {
file.go#L294: 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) {
strings
reader.go#L133: 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) {
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 {
 |
The pages are generated with Golds v0.8.4. (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |