4 ms·
This is cool. Can't help but think the examples don't really demonstrate anything new though, in the sense that there are existing tools for manipulating json
by djhworld 10y ago
This is cool.
Can't help but think the examples don't really demonstrate anything new though, in the sense that there are existing tools for manipulating json (jq), generation SHA digests etc
I have a small go script I wrote in my toolbox that reads lines from stdin, puts them into a map and increments a counter each time that line is seen (sort like `sort | uniq -c` but less memory efficient in some situations.
The tedium with that code is having to write the bits to read from stdin etc, so I can imagine using this to 'auto generate' that bit for me