Closed mobyvb closed 1 year ago
Rework the code so that the functionality is handled by a new type, TaskList, rather than relying on a global list For example I could call taskList.addTask(description) instead of using a global addTask function
TaskList
taskList.addTask(description)
addTask
files:main.go
Rework the code so that the functionality is handled by a new type,
TaskList
, rather than relying on a global list For example I could calltaskList.addTask(description)
instead of using a globaladdTask
functionfiles:main.go