ctreminiom / go-atlassian

✨ Golang Client Library for Atlassian Cloud.
https://docs.go-atlassian.io
MIT License
131 stars 34 forks source link

Replaced parameters with options and added internal #287

Closed Fank closed 4 months ago

Fank commented 4 months ago

Because of the strange handling that public & internal are true by default, I need to use a pointer to be able to set the value to false if needed.

image

Currently its not possible to hide internal comments, and adding more parameters i something agains the Go styleguide. So i replaced the parameters with an options struct, which parses the properties and create query parameters out of it. This would be a good attempt to use for other structs as well.