摘要: 1、下载sarama go get github.com/Shopify/sarama 2、生产者 package main import ( "fmt" "github.com/Shopify/sarama" ) func main(){ fmt.Println("Producer start s 阅读全文
posted @ 2021-04-05 15:16 北漂-boy 阅读(73) 评论(0) 推荐(0) 编辑
摘要: 一、普通方式 1、使用普通方式读取 package main import ( "fmt" "io" "log" "os" ) // 读取文件操作 // 读取文件使用的是os包 func ReadFileInfo(){ // func os.Open(name string) (*os.File, 阅读全文
posted @ 2021-04-05 15:05 北漂-boy 阅读(59) 评论(0) 推荐(0) 编辑