打赏

goland生成类图

Goland生成类图

1.安装goplantuml

#  找到生成成二进制目录,$GOBIN
go get github.com/jfeliu007/goplantuml/cmd/goplantuml
  1. 将goplantuml集成到Goland

    打开settings/Tools/External Tools,添加goplantuml ,Arags:-recursive --output=$FileDir$.puml $FileDir$

1655273595645

  1. Goland安装plantuml插件

    File --> Setting --> Plugins --> plantuml (安装)

    1655273827138

  2. 安装Graphviz

    # ubuntu直接安装,windows手动安装
    apt-get install graphviz
    
    下载地址:https://graphviz.org/download/
    

    1655274009409

  3. 测试,在需要生成类图的文件夹,右键 External Tools --> goplantuml,会生成xx.puml文件,就会渲染出效果。

相关链接

https://blog.csdn.net/qq_43413788/article/details/123714902

https://cafra.github.io/post/dai-ma-lei-tu-cha-kan/

posted @ 2022-07-01 18:12  苍山落暮  阅读(1814)  评论(0编辑  收藏  举报