algoliasearch-client-go
algoliasearch-client-go copied to clipboard
Untyped function parameter
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