https://github.com/maxim2266/trw
Functional composition of text processing operations.
https://github.com/maxim2266/trw
functional-composition go golang golang-library text-processing
Last synced: about 1 year ago
JSON representation
Functional composition of text processing operations.
- Host: GitHub
- URL: https://github.com/maxim2266/trw
- Owner: maxim2266
- License: bsd-3-clause
- Created: 2019-03-20T19:21:36.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2024-03-29T10:48:31.000Z (about 2 years ago)
- Last Synced: 2025-04-14T07:06:41.519Z (about 1 year ago)
- Topics: functional-composition, go, golang, golang-library, text-processing
- Language: Go
- Homepage:
- Size: 26.4 KB
- Stars: 9
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# trw: Text Re-Writer.
[](https://godoc.org/github.com/maxim2266/trw)
[](https://goreportcard.com/report/github.com/maxim2266/trw)
[](https://opensource.org/licenses/BSD-3-Clause)
Package `trw` wraps around various text processing functions from the standard
Go library to allow for functional composition of operations, also minimising
memory consumption. [Here](example_test.go) is an example of usage.
### About the package
The package is most useful in situations where a number of text rewriting
operations is to be applied sequentially to a large input byte slice. For this scenario the package provides:
- Functional composition of the existing or user-defined operations that can later be
applied all at once;
- Memory optimisation using various techniques to minimise (re)allocations.