当我尝试在 redisearch-go/client 上运行代码时
https://github.com/RedisLabs/redisearch-go
我收到以下错误。
./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
我是golang的新手,但对我来说看起来是正确的。