John Arundel

Results 181 comments of John Arundel

Thanks, @wishdev! This is certainly more flexible than what we have at the moment. I'm not sure if specifying the desired hash algorithm as a string is the right way...

Nice! Shall we now think about an example that demonstrates the need for `HashSums` with a non-trivial `script` pipeline?

> 'HashSums' isn't new functionality. It replaces SHA256Sums which is used for hashng files Well, that's exactly the point of my question: _why_ replace it?

> it allows one to select a different hash algorithm for the task at hand. And in what kind of non-trivial `script` pipeline would this be necessary? In other words,...

Thanks for the report @conotto! Can you add a few details about the problem you're trying to solve, and perhaps the Go code that you'd like to write using this...

What if the API were something like: ```go script.Stdin().Col(1, 3).Stdout() ```

Well, the use case you suggested was filtering `ps aux` output, which does use whitespace as a separator. I haven't seen any suggestions for use cases that involve some other...

Your suggestion is most welcome! Don't be offended if I ask for more information—actually, that's a sign I'm taking it seriously. To turn an _issue_ into a _proposal_ is not...

So what would the output be in that example? Something like: ``` nodeA|11.11.11.11|0-1-237864414 nodeB|11.11.11.12|0-1-216126880 ``` Presumably that's not the final output you actually want, so what else would we need...

Nice! `SplitByLine` already exists, by the way—that's called `.Slice()`.