Changed lib/item.go to send Due struct in params for adding and updating tasks. Changed add.go and modify.go to create a Due struct and add said Due struct to Item struct instead of setting item.Datestring. This change is due to an API change by Todoist.
I did have to bring the library into modify.go so I could create the Due struct. It was already referenced for other purposes in add.go
There may be a better way to do this, it seems a bit messy to me, so I'm (always) open to feedback.
Changed lib/item.go to send Due struct in params for adding and updating tasks. Changed
add.go
andmodify.go
to create a Due struct and add said Due struct to Item struct instead of settingitem.Datestring
. This change is due to an API change by Todoist.I did have to bring the library into
modify.go
so I could create the Due struct. It was already referenced for other purposes inadd.go
There may be a better way to do this, it seems a bit messy to me, so I'm (always) open to feedback.