diff options
Diffstat (limited to 'skate/reduce.go')
-rw-r--r-- | skate/reduce.go | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/skate/reduce.go b/skate/reduce.go index 1100e2f..c68b2dd 100644 --- a/skate/reduce.go +++ b/skate/reduce.go @@ -17,6 +17,21 @@ // * [ ] switch to faster logging, e.g. zerolog, https://github.com/rs/zerolog#benchmarks // * [x] batch, parallelize // * [ ] unify flags to "-a", "-b" +// +// A couple more ideas to improve. +// +// * each reducer could be its own type instead of a function in order to allow +// for customizations, options, e.g. +// +// type ReduceExact struct { +// ReleasesReader io.Reader +// RefsReader io.Reader +// W io.Writer +// MatchResult MatchResult +// } +// +// func (r *ReduceExact) Run() error { ... } +// package skate import ( |