bin/go-dep-graph @ 06a5d5a71a89

More
author Steve Losh <steve@stevelosh.com>
date Sat, 15 Jun 2019 11:46:22 -0400
parents 80f5ec3932ae
children f64186f7a65e
#!/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 "$1.png" -Tpng