-
- Downloads
Add Slice() sink (fixes #47)
* Add Slice() sink (fixes #47) * Add test with empty pipe * Apply suggestions from code review Co-Authored-By:John Arundel <john@bitfieldconsulting.com> * Not using type as variable name * Using cmp to deep compare * Not testing ListFiles in the test method for SliceSink * Remove examples/visitors/go.sum who should not be commited * An empty pipe should return an empty Slice * Better example for Slice * Ignore all go.sum Co-authored-by:
John Arundel <john@bitfieldconsulting.com> * use cmp.diff when printing error * Remove comma in doc * Move Slice after SHA256 * Edit comments * Adding trailing blank line: * Single line with embeded new lines * Code style * Range over pids * Code style * Using EachLine to split on each lines * Slice is supposed to be after SHA256 * Change order of params in cmp.Equal * Better explanation in test * typo * Better example who don't use system specific command * still an order problem * Order problem * Add comment to the example for slice * Move the test to a t.Run format * Change order for cmp.Equal * Add example file * Tweaks to SliceSink Co-authored-by:
John Arundel <john@bitfieldconsulting.com> Co-authored-by:
Thomas Poignant <thomas.poignant@adevinta.com>
Showing
- .gitignore 1 addition, 0 deletions.gitignore
- README.md 17 additions, 4 deletionsREADME.md
- examples/slice/errors.txt 13 additions, 0 deletionsexamples/slice/errors.txt
- examples/slice/main.go 27 additions, 0 deletionsexamples/slice/main.go
- pipes_test.go 6 additions, 4 deletionspipes_test.go
- sinks.go 13 additions, 0 deletionssinks.go
- sinks_test.go 61 additions, 0 deletionssinks_test.go
examples/slice/errors.txt
0 → 100644
examples/slice/main.go
0 → 100644
Please register or sign in to comment