Files
learngo/interfaces/log-parser/refactor-notes/refactor-03-deprecated/changes.md
2019-08-21 20:38:07 +03:00

14 lines
343 B
Markdown

### PROBLEM
+ `parser.go/parse()` also does updating. back to square one.
+ we need to extract the reusable behavior: scanning.
+ inflexible:
+ adding a filter is hard. needs to change the `scan()` code.
+ adding a grouper is also hard. domain grouping is hardcoded.
## SOLUTION
+
## IDEAS:
+ make domain filter accept variadic args