bin/go-dep-graph @ e5fe3d20c01c

More
author Steve Losh <steve@stevelosh.com>
date Thu, 12 Sep 2019 15:57:13 -0400
parents 20c80d3ca2b3
children ef89c7a131b1
#!/usr/bin/env bash

set -euo pipefail
function render {
    echo 'digraph foo {'
    go mod graph | sed -E 's/(.*) (.*)/    "\1" -> "\2";/' | sed -E 's/@[^; "]*//g'
    echo '}'
}

render | dot -o "dependencies.svg" -Tsvg