Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
nathany opened this issue Oct 3, 2016 · 1 comment
Open

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

nathany opened this issue Oct 3, 2016 · 1 comment

Comments

@nathany
Copy link

nathany commented Oct 3, 2016

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.

@nathany nathany changed the title Possibly an option to exclude std? Possibly an option to exclude std (standard library)? Oct 3, 2016
@nathany nathany changed the title Possibly an option to exclude std (standard library)? Suggestion: an option to exclude std (standard library)? Oct 3, 2016
@a-pav
Copy link

a-pav commented Jan 11, 2019

@nathany Seems you have some experience with goviz. Can you please guide me how to use --search flag?
When I put it in my command I get the inputdir does not exist. error.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants