Skip to content

Commit

Permalink
Add section about go list
Browse files Browse the repository at this point in the history
  • Loading branch information
egonelbre committed Dec 27, 2018
1 parent ee4700f commit 4dc513b
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,4 +62,10 @@ All of these can of course be combined:
# list packages used by github.com/loov/goda
# excluding golang.org/x/tools/..., but not their dependencies
goda list github.com/loov/goda/... @ - golang.org/x/tools/... $
```
```

## Why not use `go list` instead of `goda list`

For basic usage `go list` is quite nice, however when you want to do more complicated queries then things become difficult quite fast. You end up needing scripts that do the heavy lifting and making them cross-platform is another issue.

However, `go list` is more tightly integrated with `go` itself, so it can answer more in-depth queries.

0 comments on commit 4dc513b

Please sign in to comment.