Skip to content

noyuno/gostruct

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

gostruct

Build Status

Golang struct graph visualizer

Example

gostruct -b1 example A | dot -Tpng -o/tmp/a.png
package example

type E struct {
    key int
    val []rune
    D   *D
}

type D struct {
    E *E
}

type C struct {
    E E
}

type B struct {
    D *D
}
type A struct {
    B1 B
    C2 []*C
    D6 *D
    E9 []E
    *C
}

fig

Requirement

  • Graphviz
  • Go v1.9.2
    • github.com/sirupsen/logrus

Usage

-b    show builtin packages
-builtin
    show builtin packages
-d string
    target directory (default ".")
-debug
    outputs debug text
-l    show label (default true)
-label
    show label (default true)

About

Golang `struct` graph visualizer

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages