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

Add text processing package #34

Open
vladimirvivien opened this issue Jul 28, 2021 · 0 comments
Open

Add text processing package #34

vladimirvivien opened this issue Jul 28, 2021 · 0 comments

Comments

@vladimirvivien
Copy link
Owner

When the Proc package returns its results as text, there needs to be a text processing package that allows parsing, tokenization, and columnar/tabular access to text (think awk).

text.Tok(exec.Run("command")).Lines(2).Words(10).String()

For instance, in the previous snippet:

  • Func Tok(<string>) tokenizes the text
  • Tok(<string>).Lines(2) returns the second line in the text
  • Tok(<string>).Lines(2).Words(10) returns the tenth word from line 2.
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