07 2019 档案

摘要:关于go modules的使用外面的教程实在太多了,我这里只讲下我自己使用的三种情形。 准备工作: 1、新建个文件加gomod_test。 2、在这个目录输入命令 go mod init gomod_test 情形一:比较常见的情况,引用github的包 比方我有如下代码 main.go 直接命令  阅读全文
posted @ 2019-07-31 16:14 MrBlue 阅读(2377) 评论(0) 推荐(0) 编辑
摘要:0x0 需求 消费Kafka的日志并写入ElasticSearch供查询 0x1 依赖库 golang版Kafka客户端 https://github.com/Shopify/sarama golang版ElasticSearch客户端 https://github.com/elastic/go-e 阅读全文
posted @ 2019-07-26 17:00 MrBlue 阅读(2232) 评论(0) 推荐(1) 编辑