bin/go-dep-graph @ f64186f7a65e

More
author Steve Losh <steve@stevelosh.com>
date Wed, 24 Jul 2019 12:14:28 -0400
parents 80f5ec3932ae
children 20c80d3ca2b3
#!/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.png" -Tpng