How to use GoPlantUML?

  • 23 July 2021
Image not Found

goplantuml generates code in PlantUML format that represents a diagram of the relationships between the Go receiver structs, they are analogous to classes in traditional OOP.

A useful tool at the beginning of the design and planning a complex project in Go, if you want graphically observe which entities are stepping on interfaces, visually follow dependency injections or identify patterns.

If your project is flat without packages

$ goplantuml -aggregate-private-members -show-compositions -show-implementations -show-aggregations . > diagram.puml

If your project has packages

$ goplantuml -aggregate-private-members -show-compositions -show-implementations -show-aggregations ./ > diagram.puml

You May Also Like

Record video screen with FFmpeg

Record video screen with FFmpeg

ffmpeg is a cli-tool that in addition to allowing multimedia file format conversion you can also record screen video starting from the terminal …