When I try to run the code on redisearch-go/client
https://github.com/RedisLabs/redisearch-go
I get the following error.
./docsearch.go:37:41: cannot use []redisearch.Document literal (type []redisearch.Document) as type redisearch.Document in argument to c.Index
./docsearch.go:37:41: cannot use redisearch.DefaultIndexingOptions (type redisearch.IndexingOptions) as type redisearch.Document in argument to c.Index
I am new to golang but it looks correct to me.