github.com/magodo/ged@v0.0.0-20230330082724-5cc965b061e6/README.md (about) 1 # ged 2 3 ![workflow](https://github.com/magodo/ged/actions/workflows/go.yml/badge.svg) 4 5 **G**et **e**xternal **d**ependencies of Go code. 6 7 In case of finding external functions/methods, the tool currently only support statically dispatched calls. 8 9 ## Install 10 11 go install github.com/magodo/ged 12 13 ## Usage 14 15 16 ged [options] [packages] 17 18 Options: 19 -p string 20 <pkg path>:<ident>[:[<field>|<method>()]] 21 22 ## Example 23 24 Below example is to look for all method calls of `.Position()` on type `FileSet`, which is defined in package `go/token`, among the `ged` codebase: 25 26 ```shell 27 ged on main via 🐹 v1.17.7 28 💤 ged -p 'go/token:FileSet:Position()' . 29 go/token FileSet.Position(): 30 /home/magodo/github/ged/pattern.go:98:7 31 /home/magodo/github/ged/pattern.go:128:21 32 /home/magodo/github/ged/pattern.go:167:20 33 ```