Skip to content
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

ReadCloser should able to read content directly, or add function to access content, instead of using io.ReadAll #3268

Closed
wondar-chan opened this issue Jan 16, 2024 · 0 comments

Comments

@wondar-chan
Copy link

package: /gogf/gf/[email protected]/internal/utils/utils_io.go:20
suggestion: why not export a function, called GetContent eg. so we can direct access ReadCloser.content. we all know, io.ReadAll behave bad when data is too big. With a funciton which can aceess content, we no need to use io.ReadAll, so that we can reduce memery usage.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Feb 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant