golang
转身那一瞬
比较懒,此账号仅最为自己的笔记以及总结用
展开
-
PDF转doc(golang 跨平台版)
【代码】PDF转doc(golang 跨平台版)原创 2022-10-18 18:33:55 · 767 阅读 · 1 评论 -
golang相关github
es 相关1. hub.docker.com2. github.com/olivere/elastic3. github.com/olivere/elastic/wiki4. java-rest-high-level5. 官方elastic-api6. java-ES查询示例7. IK分词器8. Elasticsearch原理19. Elasticsearch原理210. Elasticsearch原理211. elasticsearch为什么比mysql快12. es中的term原创 2021-03-03 13:07:55 · 147 阅读 · 0 评论 -
golang 使用 es
golang 使用 eshttps://github.com/olivere/elastic/wikihttps://github.com/olivere/elasticik分词器https://github.com/medcl/elasticsearch-analysis-ik安装参照词表找对应的 ik 版本IK versionES versionmaster7.x -> master6.x6.x5.x5.x1.10.62.4.6原创 2021-03-03 13:06:23 · 1837 阅读 · 0 评论 -
golang 携程 errgrou使用
Go团队在实验仓库中添加了一个名为sync.errgroup的新软件包。 sync.ErrGroup再sync.WaitGroup功能的基础上,增加了错误传递,以及在发生不可恢复的错误时取消整个goroutine集合,或者等待超时Go()方法不仅允许你传一个匿名的函数,而且还能捕获错误信息,你只要像这样返回一个错误 return err,这使开发者使用goroutines时开发效率显著提高工具方法封装示例// Copyright 2016 The Go Authors. All rights re.原创 2020-12-01 14:47:37 · 332 阅读 · 0 评论 -
elasticsearch学习相关博客整理(golang方向)
1. hub.docker.com2. github.com/olivere/elastic3. github.com/olivere/elastic/wiki4. java-rest-high-level5. 官方elastic-api6. java-ES查询示例7. IK分词器8. Elasticsearch原理19. Elasticsearch原理210. Elasticsearch原理211. elasticsearch为什么比mysql快12. es中的term和match.原创 2020-12-01 14:28:36 · 132 阅读 · 0 评论 -
golang 整合es6, es7, xorm
1. 新建项目项目git代码2.初始化go.mod3.编写配置package configimport ( "fmt" _ "github.com/go-sql-driver/mysql" xorm "github.com/go-xorm/xorm" elastic6 "github.com/olivere/elastic" elastic7 "github.com/olivere/elastic/v7" "log")var GlobalConfig *Configtype原创 2020-12-01 14:26:43 · 660 阅读 · 0 评论 -
golang 使用 es 遇到的问题
golang 使用 es 遇到的问题1.使用Golang客户端连接docker中es报错:no active connection found: no Elasticsearch node available使用的第三方库:"github.com/olivere/elastic"节点的 es ip 必须使用 本机ip,不能使用 127.0.0.1 或者 localhost ,其他地方可以不用指定,否则必须显性的指示操作的typees7 type 只能为 _doc 可以省略 3. do原创 2020-12-01 14:13:31 · 565 阅读 · 0 评论 -
golang 使用 elasticsearch ik 分词器
golang 使用 elasticsearchhttps://github.com/olivere/elastic/wikihttps://github.com/olivere/elasticik分词器https://github.com/medcl/elasticsearch-analysis-ik安装参照词表找对应的 ik 版本IK versionES versionmaster7.x -> master6.x6.x5.x5.x1.10原创 2020-12-01 14:09:02 · 1812 阅读 · 2 评论