func io.NopCloser
15 uses
io (current package)
io.go#L612: func NopCloser(r Reader) ReadCloser {
io/ioutil
ioutil.go#L77: return io.NopCloser(r)
archive/zip
register.go#L113: decompressors.Store(Store, Decompressor(io.NopCloser))
net/http
client.go#L284: resp.Body = io.NopCloser(strings.NewReader(""))
request.go#L872: rc = io.NopCloser(body)
request.go#L894: return io.NopCloser(r), nil
request.go#L901: return io.NopCloser(&r), nil
request.go#L908: return io.NopCloser(&r), nil
transfer.go#L1077: var nopCloserType = reflect.TypeOf(io.NopCloser(nil))
net/http/httptest
httptest.go#L68: req.Body = io.NopCloser(body)
recorder.go#L182: res.Body = io.NopCloser(bytes.NewReader(rw.Body.Bytes()))
net/http/httputil
dump.go#L37: return io.NopCloser(&buf), io.NopCloser(bytes.NewReader(buf.Bytes())), nil
dump.go#L83: req.Body = io.NopCloser(io.LimitReader(neverEnding('x'), contentLength))
dump.go#L305: var emptyBody = io.NopCloser(strings.NewReader(""))
![]() |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin 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. |