algoliasearch-client-go icon indicating copy to clipboard operation
algoliasearch-client-go copied to clipboard

Untyped function parameter

Open bengreenbank opened this issue 7 months ago • 0 comments

By accepting an interface here, we could encounter issues where incorrect parameters are passed to the function, see an example here. Could we type it as an option instead?

https://github.com/algolia/algoliasearch-client-go/blob/64232385c99915e8dc51daa1fa4c753c2ab7e97a/algolia/search/index_settings.go#L11-L29

bengreenbank avatar Jun 28 '24 15:06 bengreenbank