All Projects → motemen → gofind

motemen / gofind

Licence: other
gofind searches through Go source code by types.

Programming Languages

go
31211 projects - #10 most used programming language

Projects that are alternatives of or similar to gofind

codesnippetsearch
Neural bag of words code search implementation using PyTorch and data from the CodeSearchNet project.
Stars: ✭ 67 (+42.55%)
Mutual labels:  code-search
bor
User-friendly, tiny source code searcher written by pure Python.
Stars: ✭ 105 (+123.4%)
Mutual labels:  code-search
so stupid search
It's my honor to drive you fucking fire faster, to have more time with your Family and Sunshine.This tool is for those who often want to search for a string Deeply into a directory in Recursive mode, but not with the great tools: grep, ack, ripgrep .........every thing should be Small, Thin, Fast, Lazy....without Think and Remember too much ...一…
Stars: ✭ 135 (+187.23%)
Mutual labels:  code-search
Sourcegraph
Universal code search (self-hosted)
Stars: ✭ 5,492 (+11585.11%)
Mutual labels:  code-search
facoy
FaCoY Code-to-Code Search Engine
Stars: ✭ 26 (-44.68%)
Mutual labels:  code-search

gofind

gofind is a comamnd that searches through Go source code by types.

Usage

gofind [-p] [-s] [-q] <pkg>.<name>[.<sel>] <pkg>...

Example

% gofind encoding/json.Encoder.Encode $(go list golang.org/x/...)
handlers.go:145:        json.NewEncoder(w).Encode(resp)
socket.go:125:                  if err := enc.Encode(m); err != nil {

Description

gofind searches through Go source code by given expression, using type information. It finds code entities with the type of given expression:

  • Variable definitions/occurrences
  • Struct fields (with )
  • Methods (with )

Installation

go get -u github.com/motemen/gofind/cmd/gofind

TODO

  • Find return types
  • provide filename-only option like "grep -l"
  • eg. "error" in universe scope
  • print for each package?

Author

motemen https://motemen.github.io/

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].