运行starter.go之后,会报json解析错误
来源:17-10 实现前端展示页面

慕圣3803483
2019-09-01
json: cannot unmarshal number into Go struct field SearchHits.total of type elastic.TotalHits
写回答
1回答
-
这个是版本问题,go语言的版本必须和elasticsearch的版本对应,具体对应在
https://github.com/olivere/elastic/blob/release-branch.v7/README.md#releases
112019-09-14
相似问题
chan goroutine 报错的疑惑
回答 1
老师您好,如果碰到运行时错误怎么处理呢
回答 1