plantUml
安装的坑
重新刷新一下就ok啦~
基本使用介绍
@startuml
'设置皮肤,红色
skin rose
'https://plantuml.com/sequence-diagram,具体的文档,可以看这个网站,还可以进行在线渲染,虽然有些问题
'as起别名
actor 客户端 as client
autonumber
'group
group group
'++开始生命线->实线
Alice -> Bob++: Authentication Request
'--结束生命线-->虚线
Bob --> Alice--: Authentication Response
'自增序号
autonumber
Alice -> Bob++: Authentication Request
Alice -> Bob: Another authentication Request
Alice -> Alice: Another authentication Request
'重新自增
autonumber
'子group
group subgroup
Bob -> client--: Another authentication Request
end group
'在group右边标note
note right: hahah
Alice <-- Bob: another authentication Response
end group
Alice --> Bob--: another authentication Response
@enduml
例子图片:
protobuf代码格式化
安装如下插件,这个插件和goland官方自带的pb插件以及grpc插件冲突,需要禁用官方插件然后重启
option+cmd+L即可格式化proto代表,包括对其等等
go环境
GOPROXY="goproxy.xxxx.com,direct"
GONOSUMDB="gopkg.xxx.com" //配置某个包不需要sum校验
GOSUMDB="sum.golang.google.cn"
IDE卡顿问题解决
1.下载合适的版本,M1芯片下载intel的版本会很卡,所以,要下载合适的芯片
2.调整堆内存,默认的堆内存是2G,但是如果打开的项目很多,是不够用的,会进行大量的GC,导致卡顿,调整成4G就好了
-Xmx4096m
-Xmx4096m
更改配置文件,增加以上两个参数就好了