gograph

command module
v0.0.0-...-6cdb220 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 26, 2018 License: Apache-2.0 Imports: 17 Imported by: 0

README

GoGraph

GoGraph builds graphs out of Go source code.

GoGraph currently only works with structs.

Install

go get -u github.com/tbpg/gograph

Examples

Analyze a type from command line:

gograph -type gonum.org/v1/gonum/graph/simple.DirectedGraph | dot -Tpng -o out.png

Run a server:

gograph -http :8080

sample graph

Questions

File a bug or reach out on Twitter.

Disclaimer

This is not an official Google product.

Documentation

Overview

gograph generates a DOT graph of the given type.

Referenced packages/types must be in your GOPATH.

Usage:

-debug
	Enable debug logging on Stderr
-filename string
	Where to store data if -type is specified (default: stdout).
-http string
	Address to listen on for server (default: no server).
-type string
	Type to analyze.

To analyze a type locally:

gograph -type github.com/tbpg/gograph.node | dot -Tpng out.dot -o out.png

Or, to run the server:

gograph -http :8080

Warning: This is still experimental - the API, CLI, and server might change.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL