Source File
readerfactory.go
Belonging Package
github.com/grpc-ecosystem/grpc-gateway/v2/utilities
package utilitiesimport ()// IOReaderFactory takes in an io.Reader and returns a function that will allow you to create a new reader that begins// at the start of the streamfunc ( io.Reader) (func() io.Reader, error) {, := io.ReadAll()if != nil {return nil,}return func() io.Reader {return bytes.NewReader()}, nil}
![]() |
The pages are generated with Golds v0.8.2. (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. |