ged

command module
v0.0.0-...-5cc965b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 30, 2023 License: MIT Imports: 10 Imported by: 0

README

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

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL