New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add ReadAllLimitSize to io/ioutil #28788
Comments
I believe you are looking for - https://golang.org/pkg/io/#LimitReader According to your code, it should be I am going to close this as I see that the functionality is already present in the standard library. Adding another function which does the exact same thing will lead to unnecessary duplication. Please feel free to comment if you still want it, or had something else in mind. Thank you. |
3q |
@agnivade hello, |
@fwhezfwhez for questions about Go, see https://golang.org/wiki/Questions. |
well |
What do I do?
Add new function for io/ioutil package.
What does it work for?
Read a reader with a size limit.When using ioutil.ReadAll(), I'm afaid the reader contains too much to fullfill the memory.
What is it?
Testcase
The text was updated successfully, but these errors were encountered: