Skip to content

magodo/ged

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ged

workflow

Get external dependencies of Go code.

In case of finding external functions/methods, the tool currently only support statically dispatched calls.

Install

go install github.com/magodo/ged

Usage

ged [options] [packages]

Options:
  -p string
        <pkg path>:<ident>[:[<field>|<method>()]]

Example

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:

ged on  main via 🐹 v1.17.7 
💤  ged -p 'go/token:FileSet:Position()' .
go/token FileSet.Position():
        /home/magodo/github/ged/pattern.go:98:7
        /home/magodo/github/ged/pattern.go:128:21
        /home/magodo/github/ged/pattern.go:167:20

About

Get Go external dependency

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages