-
-
Notifications
You must be signed in to change notification settings - Fork 85
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
Allow processing pre-parsed slice of fields (via interp.Config) #248
Comments
This is an interesting idea. I don't have any immediate plans to do this, but I could see it being done with another value for I'll probably not work on this issue now, but I'll leave it open to come back to later, or in case someone wants to try. In the meantime, I recommend writing your parsed data fields to CSV using |
I could try my luck, if you could show some pointers where to start in your code?
Ah, very nice. I'll try this. |
It'll be in the Just note that I'm not 100% sure of this yet, but it'd be good to see a proof of concept (don't worry about tests) and then I'll make a decision about whether the concept is a goer or not. |
@TLINDEN: For the original use case in this feature request, please also look into the |
Howdy,
currently - as far as I understand the docs - if you use the go api, you have to feed the data to be processed as a string (or from whatever input it comes, but will be a string anyway), which then will be parsed according to the settings. I suspect, that in the end this input ends up in some data structure like
[][]any{}
or something like that.What if I already have such a data structure? It would be cool to be able to feed just the data to
interp.Config{}
somehow, thereby skipping the CSV parsing and just feed the data to the AWK program?Something like:
That way I could for instance parse JSON tabular data and run some AWK code on it :)
Would that be possible?
The text was updated successfully, but these errors were encountered: