The most convenient way to use D2 is to just run it as a CLI executable to ... In addition to being a runnable CLI tool, D2 can also be used to produce diagrams from Go programs. For examples, see ...