Closed Ja7ad closed 1 month ago
Description In some methods we use value receiver and some methods used pointer receiver, Base on Go documentation we need choice one way.
Best practice is use pointer receiver.
https://go.dev/tour/methods/8
Screenshots or Logs
https://github.com/meilisearch/meilisearch-go/blob/869e74304eae91d70de5a9ac814c55b4683f33c4/index_documents.go#L209
https://github.com/meilisearch/meilisearch-go/blob/869e74304eae91d70de5a9ac814c55b4683f33c4/index_documents.go#L155
Hello @Ja7ad Thanks for this suggestion!
@curquiza This issue fixed on refactor.
Description In some methods we use value receiver and some methods used pointer receiver, Base on Go documentation we need choice one way.
Best practice is use pointer receiver.
https://go.dev/tour/methods/8
Screenshots or Logs
https://github.com/meilisearch/meilisearch-go/blob/869e74304eae91d70de5a9ac814c55b4683f33c4/index_documents.go#L209
https://github.com/meilisearch/meilisearch-go/blob/869e74304eae91d70de5a9ac814c55b4683f33c4/index_documents.go#L155