Когда я пытаюсь запустить код на 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
Я новичок в Голанге, но для меня это выглядит правильно.