Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replaced parameters with options and added internal #287

Merged
merged 2 commits into from
Jul 14, 2024

Conversation

Fank
Copy link
Collaborator

@Fank Fank commented Jul 2, 2024

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.

@ctreminiom ctreminiom merged commit a9d0768 into main Jul 14, 2024
26 checks passed
@Fank Fank deleted the fk_request_comment_gets_options branch July 14, 2024 04:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Released
Development

Successfully merging this pull request may close these issues.

2 participants