Code Monkey home page Code Monkey logo

goviz's People

Contributors

hirokidaichi avatar lestrrat avatar syohex avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

goviz's Issues

Option to hide filenames

Hi,

The filename display is nice but it behaves badly when packages contain a large number of files (e.g. golang.org/x/sys/unix).

Please consider adding an option to hide filename display,

Thanks

Unable to handle GOPATH with multiple paths.

export GOPATH=/tmp/go_a:/tmp/go_b
go get github.com/hirokidaichi/goviz
goviz -i github.com/hirokidaichi/goviz
// Output:
// inputdir does not exist.
// go get github.com/hirokidaichi/goviz

No Output At All

Running goviz generates no output at all, I don't even get the help message with -h. No commands provide any output at all. It was installed with go get github.com/hirokidaichi/goviz. Using go version 1.6.3 on Ubuntu 16.04.1.

[Error] runtime error: invalid memory address or nil pointer dereference

This is what I get. I can come back with config files if you want, but in a nutshell I'm running a pretty vanilla Mavericks with the latest go, brew, zsh, etc

➜  ~  goviz -i github.com/hashicorp/serf | dot -Tpng -o hoge.png
panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xb code=0x1 addr=0x18 pc=0x20ee]

goroutine 1 [running]:
runtime.panic(0x12c680, 0x2ce219)
    /usr/local/Cellar/go/1.2.1/libexec/src/pkg/runtime/panic.c:266 +0xb6
main.main()
    /Users/andrei/src/github.com/hirokidaichi/goviz/goviz.go:40 +0x7e
➜  ~  goviz -i github.com/mattn/anko | dot -Tpng -o anko.png
panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xb code=0x1 addr=0x18 pc=0x20ee]

goroutine 1 [running]:
runtime.panic(0x12c680, 0x2ce219)
    /usr/local/Cellar/go/1.2.1/libexec/src/pkg/runtime/panic.c:266 +0xb6
main.main()
    /Users/andrei/src/github.com/hirokidaichi/goviz/goviz.go:40 +0x7e
➜  ~  goviz -i github.com/dotcloud/docker/docker -m
panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xb code=0x1 addr=0x18 pc=0x20ee]

goroutine 1 [running]:
runtime.panic(0x12c680, 0x2ce219)
    /usr/local/Cellar/go/1.2.1/libexec/src/pkg/runtime/panic.c:266 +0xb6
main.main()
    /Users/andrei/src/github.com/hirokidaichi/goviz/goviz.go:40 +0x7e

Suggestion: an option to exclude `std` (standard library)?

It's super nice being able to use --search to limit to the packages that are part of an application without showing dependencies of all the third-party libraries.

It's also nice to combine --search with --leaf to show those third-party libraries without all the details.

But then all the standard library packages like fmt end up in the graph too. Maybe they could be excluded somehow?

For an example of what I'm thinking, something like this where the go-flags package is shown as is, but the other leaf packages (std) are not.

viz

goviz -i github.com/hirokidaichi/goviz -s github.com/hirokidaichi/goviz -l | dot -Tpng -o viz.png

I would probably suggest hiding std packages by default and having a --std option to include them.

No output on ubuntu

go get github.com/hirokidaichi/goviz Worked fine
sudo apt install graphviz Worked fine
goviz -i github.com/mattn/anko | dot -Tpng -o anko.png Had no output, image was not create
goviz -h No output
goviz executable is present in bin folder but executing it does not output anything.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.