Попытка запустить пример клиента redisearch-go без компиляции

Когда я пытаюсь запустить код на 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

Я новичок в Голанге, но это выглядит правильно для меня.

0 ответов

Другие вопросы по тегам