type io.Writer
192 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#L364: func CopyN(dst Writer, src Reader, n int64) (written int64, err error) {
io.go#L388: func Copy(dst Writer, src Reader) (written int64, err error) {
io.go#L399: func CopyBuffer(dst Writer, src Reader, buf []byte) (written int64, err error) {
io.go#L408: func copyBuffer(dst Writer, src Reader, buf []byte) (written int64, err error) {
io.go#L610: func TeeReader(r Reader, w Writer) Reader {
io.go#L616: w Writer
io.go#L631: var Discard Writer = discard{}
io.go#L693: 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#L95: var Discard io.Writer = io.Discard
bufio
bufio.go#L517: 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#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#L568: func (d *compressor) init(w io.Writer, level int) (err error) {
deflate.go#L601: func (d *compressor) reset(w io.Writer) {
deflate.go#L665: func NewWriter(w io.Writer, level int) (*Writer, error) {
deflate.go#L679: func NewWriterDict(w io.Writer, level int, dict []byte) (*Writer, error) {
deflate.go#L691: w io.Writer
deflate.go#L736: 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#L773: KeyLogWriter io.Writer
encoding/base64
base64.go#L204: w io.Writer
base64.go#L273: func NewEncoder(enc *Encoding, w io.Writer) io.WriteCloser {
encoding/binary
binary.go#L342: func Write(w io.Writer, order ByteOrder, data any) error {
encoding/hex
hex.go#L149: w io.Writer
hex.go#L155: func NewEncoder(w io.Writer) io.Writer {
hex.go#L224: func Dumper(w io.Writer) io.WriteCloser {
hex.go#L229: 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/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#L26: func (w *Writer) WriteTo(t io.Writer) (n int64, err error) {
w.go#L49: 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/internal/mtproxy/faketls
client_hello.go#L96: w io.Writer,
record.go#L55: func writeRecord(w io.Writer, r record) (int, error) {
github.com/gotd/td/internal/proto
gzip.go#L33: func (g *gzipPool) GetWriter(w io.Writer) *gzip.Writer {
github.com/gotd/td/internal/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#L105: func writeFile(w io.Writer, data []byte, version [4]byte) error {
file.go#L160: func writeArray(writer io.Writer, data []byte, order binary.ByteOrder) 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#L808: func (d *compressor) init(w io.Writer, level int) (err error) {
deflate.go#L851: func (d *compressor) reset(w io.Writer) {
deflate.go#L915: func NewWriter(w io.Writer, level int) (*Writer, error) {
deflate.go#L929: func NewWriterDict(w io.Writer, level int, dict []byte) (*Writer, error) {
deflate.go#L947: func NewWriterWindow(w io.Writer, windowSize int) (*Writer, error) {
deflate.go#L997: func (w *Writer) Reset(dst io.Writer) {
deflate.go#L1013: func (w *Writer) ResetDict(dst io.Writer, dict []byte) {
huffman_bit_writer.go#L101: writer io.Writer
huffman_bit_writer.go#L145: func newHuffmanBitWriter(w io.Writer) *huffmanBitWriter {
huffman_bit_writer.go#L155: func (w *huffmanBitWriter) reset(writer io.Writer) {
inflate.go#L405: func (f *decompressor) WriteTo(w io.Writer) (int64, error) {
stateless.go#L20: dst io.Writer
stateless.go#L41: func (s *statelessWriter) Reset(w io.Writer) {
stateless.go#L51: func NewStatelessWriter(dst io.Writer) io.WriteCloser {
stateless.go#L67: 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) {
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) {
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
hash
hash.go#L29: 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#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#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#L664: io.Writer
net.go#L669: func genericReadFrom(w io.Writer, r io.Reader) (n int64, err error) {
net.go#L721: func (v *Buffers) WriteTo(w io.Writer) (n int64, err error) {
net/http
h2_bundle.go#L1688: w io.Writer
h2_bundle.go#L1831: func http2NewFramer(w io.Writer, r io.Reader) *http2Framer {
h2_bundle.go#L3556: w io.Writer // immutable
h2_bundle.go#L3560: func http2newBufferedWriter(w io.Writer) *http2bufferedWriter {
h2_bundle.go#L3718: 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#L192: func (h Header) WriteSubset(w io.Writer, exclude map[string]bool) error {
header.go#L196: func (h Header) writeSubset(w io.Writer, exclude map[string]bool, trace *httptrace.ClientTrace) error {
http.go#L116: func (noBody) WriteTo(io.Writer) (int64, error) { return 0, nil }
request.go#L539: func (r *Request) Write(w io.Writer) error {
request.go#L549: func (r *Request) WriteProxy(w io.Writer) error {
request.go#L560: 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#L572: io.Writer
server.go#L844: func newBufioWriterSize(w io.Writer, size int) *bufio.Writer {
transfer.go#L276: func (t *transferWriter) writeHeader(w io.Writer, trace *httptrace.ClientTrace) error {
transfer.go#L336: func (t *transferWriter) writeBody(w io.Writer) (err error) {
transfer.go#L411: func (t *transferWriter) doBodyCopy(dst io.Writer, src io.Reader) (n int64, err error) {
transfer.go#L1113: type bufioFlushWriter struct{ w io.Writer }
net/http/internal
chunked.go#L212: func NewChunkedWriter(w io.Writer) io.WriteCloser {
chunked.go#L219: Wire io.Writer
nhooyr.io/websocket
compress.go#L84: w io.Writer
compress.go#L153: func getFlateWriter(w io.Writer) *flate.Writer {
dial.go#L319: func getBufioWriter(w io.Writer) *bufio.Writer {
write.go#L379: func extractBufioWriterBuf(bw *bufio.Writer, w io.Writer) []byte {
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) {
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.6.7. (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 @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |