raksul / go-clickup

Clickup go client
MIT License
39 stars 24 forks source link

Add Date type to update/remove due date. #34

Closed w-haibara closed 1 year ago

w-haibara commented 1 year ago

This PR adds a Date type to update or delete the due date of a Task.

This is the execution result of the sample code to update and remove the due date of the task whose ID is 376jy0a (ccc is the task name).

$ go run example/update-duedate/main.go
Enter clickup taskId: 376jy0a

Get due date of current task
ccc 2022-11-17 04:00:00 +0900 JST

Update due date of the task to 2122/01/02 03:04:05:06
ccc 2122-01-02 04:00:00 +0900 JST

Update the task with empty TaskRequest
ccc 2122-01-02 04:00:00 +0900 JST

Remove task due date with NullDate()
ccc <nil>