diff options
| author | Grant Ammons <gammons@gmail.com> | 2017-10-04 07:34:43 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-10-04 07:34:43 -0400 |
| commit | b3bd13d469ff1c072e5ff6dfe15267cc51e14db5 (patch) | |
| tree | 49bfa1d32b280be32ac42f1d0ddf1ef07f6809fe /todolist/memory_printer.go | |
| parent | 0840e7a147d8594acec63fd1ce8aba9e15472839 (diff) | |
| parent | 6193b27cd7c71bcff5b5dd0cafb4f04172a73206 (diff) | |
Merge pull request #109 from gammons/refactor-printer
Refactor the formatter to an interface and rename it
Diffstat (limited to 'todolist/memory_printer.go')
| -rw-r--r-- | todolist/memory_printer.go | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/todolist/memory_printer.go b/todolist/memory_printer.go new file mode 100644 index 0000000..d9c504f --- /dev/null +++ b/todolist/memory_printer.go @@ -0,0 +1,9 @@ +package todolist + +type MemoryPrinter struct { + Groups *GroupedTodos +} + +func (m *MemoryPrinter) Print(groupedTodos *GroupedTodos, printNotes bool) { + m.Groups = groupedTodos +} |
