摘要: gin是一款轻量级的go web开发框架,官方文档 https://gin-gonic.com/docs/examples/ 1.gin web项目结构 参考 https://github.com/voyagegroup/gin-boilerplate gin+protobuf wire参考 htt 阅读全文
posted @ 2024-05-09 22:21 tonglin0325 阅读(26) 评论(0) 推荐(0) 编辑
摘要: 官方文档 https://go-kratos.dev/en/docs/getting-started/start/ 1.安装Go 参考:mac安装go1.20 2.安装Kratos框架 kratos依赖protobuf grpc等框架,需要先进行安装 brew install grpc brew i 阅读全文
posted @ 2024-05-09 22:08 tonglin0325 阅读(832) 评论(0) 推荐(0) 编辑
摘要: 1.查找go依赖 go依赖可以去下面网站查找package https://pkg.go.dev/ 比如 https://pkg.go.dev/github.com/confluentinc/confluent-kafka-go#section-readme 2.go切换源 # 启用 Go Modu 阅读全文
posted @ 2024-05-09 10:03 tonglin0325 阅读(12) 评论(0) 推荐(0) 编辑
摘要: 在terminal上使用跳板机远程登录其他机器的时候,经常会因为和跳板机的连接断开而丢失会话,如下 这时候可以使用screen命令来创建和恢复会话 1.创建会话 screen 或者 screen -S session_name 这时我们就进到了一个screen会话中,比如我们进到/tmp目录下 2. 阅读全文
posted @ 2024-05-09 10:01 tonglin0325 阅读(36) 评论(0) 推荐(0) 编辑