diff options
| -rw-r--r-- | todolist/app.go | 2 | ||||
| -rw-r--r-- | todolist/parser.go | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/todolist/app.go b/todolist/app.go index 00effa7..e0f11d2 100644 --- a/todolist/app.go +++ b/todolist/app.go @@ -17,7 +17,7 @@ func NewApp() *App { func (a *App) AddTodo(input string) { parser := &Parser{} - todo := parser.Parse(input) + todo := parser.ParseNewTodo(input) a.TodoStore.Add(todo) a.TodoStore.Save() diff --git a/todolist/parser.go b/todolist/parser.go index d3b5968..1e98d33 100644 --- a/todolist/parser.go +++ b/todolist/parser.go @@ -11,7 +11,7 @@ import ( type Parser struct{} -func (p *Parser) Parse(input string) *Todo { +func (p *Parser) ParseNewTodo(input string) *Todo { todo := NewTodo() todo.Subject = p.Subject(input) todo.Projects = p.Projects(input) |
