Files
learngo/advfuncs/logparser/refactor-notes/refactor-03-deprecated/changes.md
2019-08-25 21:01:44 +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