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

Efficient text replacement #3

Open
mholt opened this issue Jul 18, 2020 · 0 comments
Open

Efficient text replacement #3

mholt opened this issue Jul 18, 2020 · 0 comments

Comments

@mholt
Copy link

mholt commented Jul 18, 2020

Although it doesn't support regex, my understanding is that this package in conjunction with x/text/transform can efficiently perform text substitutions in streams: https://github.com/icholy/replace - it does not require buffering the entire body in memory.

This could be handy for production use cases requiring literal replacements in the response body.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant