Skip to content
/ trw Public

Functional composition of text processing operations.

License

Notifications You must be signed in to change notification settings

maxim2266/trw

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

trw: Text Re-Writer.

GoDoc Go Report Card License: 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 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.