Description
go-plantuml is a command-line tool written in Go that reads Go source files or whole directories and generates a PlantUML diagram from them. It runs as go-plantuml generate, which reads the current directory by default. You can pass a source directory with -d and choose the output file with -o, for example to write graph.puml. It supports generic fields in the types it documents. You install it with the Go toolchain, and the install directory for Go binaries needs to be on your PATH. The output is plain PlantUML text, so you can render it with any PlantUML viewer. The project is MIT licensed and takes pull requests; for larger changes, the maintainer asks for an issue first so the change can be discussed, along with updated tests.…
Highlights
- Generates PlantUML diagrams from Go source
- Works on a single directory or the current folder
- Supports generic fields
- Simple go-plantuml generate command
- MIT licensed
Ratings & Reviews
No ratings yet
Be the first to rate Go Plantuml.
People also visit
Text To Diagram Site
Compare syntax, layouts, outputs between languages for generating diagrams
Go Plantuml FAQ
What does go-plantuml do?
It reads Go source files or directories and writes a PlantUML diagram describing them. Running go-plantuml generate reads the current directory.
How do I install it?
With the Go toolchain. Make sure your GOPATH bin directory is on your PATH so the command can run.
How do I choose the output file?
Use -d for the source directory and -o for the output file, for example go-plantuml generate -d . -o graph.puml.
Is it free?
Yes. The project is licensed under MIT.
Can I contribute?
Yes. Pull requests are welcome. For major changes, open an issue first to discuss them, and update the tests.
What are the best Go Plantuml alternatives?
Popular alternatives to Go Plantuml include Goplantuml, Py2puml and Text To Diagram Site. See all Go Plantuml alternatives












