refactor: log parser text writer and func types

This commit is contained in:
Inanc Gumus
2019-08-06 01:49:48 +03:00
parent eadf0c85e4
commit 69094da997
6 changed files with 34 additions and 16 deletions

View File

@@ -1,5 +1,7 @@
package main
type groupFunc func(result) (key string)
func groupBy(results []result, keyer groupFunc) []result {
grouped := make(map[string]result, len(results))