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

Group functional options in frontend, backend and test #232

Merged
merged 9 commits into from
Jan 13, 2022

Conversation

ivokub
Copy link
Collaborator

@ivokub ivokub commented Jan 12, 2022

Following the framework of functional options as described in https://sagikazarmark.hu/blog/functional-options-on-steroids/ and https://dave.cheney.net/2014/10/17/functional-options-for-friendly-apis with slight changes. Namely, didn't rename a few methods to Set/With... pattern and didn't define Option to be interface{ apply(*config) error} to be backwards compatible.

Closes #231

@ivokub ivokub added the cleanup label Jan 12, 2022
@ivokub ivokub added this to the v0.7.0 milestone Jan 12, 2022
@ivokub ivokub requested a review from gbotrel January 12, 2022 13:33
@ivokub ivokub self-assigned this Jan 12, 2022
@ivokub ivokub force-pushed the cleanup-231-group-options branch from 2f8d00c to bfd9393 Compare January 13, 2022 09:48
@ivokub ivokub merged commit c2b22dd into develop Jan 13, 2022
@ivokub ivokub linked an issue Jan 13, 2022 that may be closed by this pull request
@ivokub ivokub deleted the cleanup-231-group-options branch January 13, 2022 10:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Group compile/proving options under same type
2 participants