Closed prgres closed 6 months ago
A lot of time has flown by since I was doing anything inside the clickup pkg but today I saw there is a lot of code duplication that can be simplified.
clickup
func (c *Client) get(url string, objmap RequestGet) error
url string
c.requestGet(url)
objmap RequestGet
type RequestGet interface
Error() string)
ViewType
Summary
A lot of time has flown by since I was doing anything inside the
clickup
pkg but today I saw there is a lot of code duplication that can be simplified.func (c *Client) get(url string, objmap RequestGet) error
and acceptsurl string
forc.requestGet(url)
to fetch data from Clickup APIobjmap RequestGet
as an interface to which that data is loadedtype RequestGet interface
that only requiresError() string)
method. Any RequestGet* struct must implement itViewType
type