Skip to content

Gomodgraff is a utility to draw relationship graph between packages inside a Go module/project.

License

Notifications You must be signed in to change notification settings

avrebarra/gomodgraff

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GitHub Logo

gomodgraff GoDoc Go Report Card

Gomodgraff is a utility to draw relationship between packages inside a Go module/project as dot diagram.

Installation

You can either build the binary yourself using make build or you can just prebuilt binary by downloading the latest releases from release page.

You can use these install scripts to download the latest version:

# install latest release to /usr/local/bin/
curl https://i.jpillora.com/avrebarra/gomodgraff! | *remove_this* bash
# install specific version
curl https://i.jpillora.com/avrebarra/gomodgraff@{version} | *remove_this* bash

Usage

# Show helps
$ gomodgraff -help

# Basic usages run in current directory
$ gomodgraff -only-internal
digraph sample {
"&cmd" -> "&modgraff";
"&main" -> "&cmd";
}

# Basic usages run in current directory, pipe to dot, and output a png
$ gomodgraff -only-internal | dot -Tpng -o gomodgraff.png

About

Gomodgraff is a utility to draw relationship graph between packages inside a Go module/project.

Resources

License

Stars

Watchers

Forks

Packages

No packages published