gospelunk

command module
v0.0.0-...-89e2d4a Latest Latest
Warning

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

Go to latest
Published: May 6, 2024 License: MIT Imports: 3 Imported by: 0

README

gospelunk

Go spelunking! CLI tool to quickly find things in Go projects.

Project Status: Alpha

  • Things might change
  • Things might break

Installation

Once you have installed Go, run this:

go install github.com/wedaly/gospelunk@latest

Commands

List

To list definitions in Go packages:

gospelunk list ./...
  • You can specify packages using the same format as other go commands. See go help packages for details.
  • You can use the --template parameter to customize the Go template used to render the output.
  • Use --include-private to include non-exported definitions.
  • Use --include-tests to include definitions from "_test.go" files.
Inspect

To lookup type information, definitions, and references for an identifier in a Go file:

gospelunk inspect -f <FILE> -l <LINE> -c <COLUMN>
  • Line and column numbers are 1-indexed, and the column unit is bytes.
  • The --relationKinds parameter controls which relations are loaded (definitions, references, or implementations).
  • The --searchDir parameter controls where gospelunk searches for references and interface implementations.
  • You can use the --template parameter to customize the Go template used to render the output.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
pkg

Jump to

Keyboard shortcuts

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