There is a package that came out for Golang that is similar to the diagrams library in python. It generates diagrams in .dot files and then you use Graphviz to
.dot