![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Go
文章平均质量分 56
nickdlk
就那样吧
展开
-
Goland proto文件 File Watch 自动生成
使用的是Kratos的项目模板生成的项目,目录结构如下:每次编写完Proto文件都要手动输入命令来生成go文件,使用Goland的File Watch监听文件改变,然后执行生成命令。需要有File Watch这个插件配置:直接把命令行的参数替换成变量就行了。生成使用的工具是protoc.exe生成Proto*.pb.go是生成的接口代码*_grpc.pb.go是grpc服务端接口生成*.pb.go的目录为proto文件的option go_package = “post/interna原创 2022-04-04 20:36:41 · 1443 阅读 · 0 评论 -
Goland的包依赖 Replace处理 排查
go.opentelemetry.io/otel错误undefined: attribute.Any原创 2021-12-05 23:20:17 · 1741 阅读 · 0 评论 -
goland git 钩子 自动生成swagger
commit钩子:.git/hooks/pre-commit#!/bin/sh## An example hook script to verify what is about to be committed.# Called by "git commit" with no arguments. The hook should# exit with non-zero status after issuing an appropriate message if# it wants to sto原创 2021-11-15 23:14:43 · 597 阅读 · 0 评论