① Install the goplantuml executable file
go get github.com/jfeliu007/goplantuml/parser
go install github.com/jfeliu007/goplantuml/cmd/goplantuml@latest
Generate .exe executable file in the bin directory of $GOPATH:
② Golang adds goplantuml
In Goland: File --> Settings --> Tools --> External Tools
Name is to name the tool, Program is the path to the executable file, and Arguments is to set certain parameters.
③ Goland installs the PlantUML plug-in
④ Test
Select the service directory, right-click External Tools and select goplantuml to generate a puml file.
Generated successfully: