aboutsummaryrefslogtreecommitdiffstats
path: root/todolist/printer.go
diff options
context:
space:
mode:
authorGrant Ammons <gammons@gmail.com>2017-10-04 07:34:43 -0400
committerGitHub <noreply@github.com>2017-10-04 07:34:43 -0400
commitb3bd13d469ff1c072e5ff6dfe15267cc51e14db5 (patch)
tree49bfa1d32b280be32ac42f1d0ddf1ef07f6809fe /todolist/printer.go
parent0840e7a147d8594acec63fd1ce8aba9e15472839 (diff)
parent6193b27cd7c71bcff5b5dd0cafb4f04172a73206 (diff)
Merge pull request #109 from gammons/refactor-printer
Refactor the formatter to an interface and rename it
Diffstat (limited to 'todolist/printer.go')
-rw-r--r--todolist/printer.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/todolist/printer.go b/todolist/printer.go
new file mode 100644
index 0000000..805cc6e
--- /dev/null
+++ b/todolist/printer.go
@@ -0,0 +1,5 @@
+package todolist
+
+type Printer interface {
+ Print(*GroupedTodos, bool)
+}