How to find all methods which return struct "Foo" (vscode or cli)

This page summarizes the projects mentioned and recommended in the original post on /r/golang

Our great sponsors
  • Onboard AI - ChatGPT with full context of any GitHub repo.
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern API for authentication & user identity.
  • goimports

    [mirror] Go Tools (by golang)

    Just a guess, but it might be somewhere in gopls https://github.com/golang/tools/tree/master/gopls/doc On this page https://langserver.org/ it says it should support "finding references"

  • golds

    An experimental Go local docs server/generator and code reader implemented with some fresh ideas.

    You can try golds: https://github.com/go101/golds It will list all functions returning Foo. It can also list all references of Foo.

  • Onboard AI

    ChatGPT with full context of any GitHub repo. Onboard AI learns any GitHub repo in minutes and lets you chat with it to locate functionality, understand different parts, and generate new code. Use it for free at app.getonboardai.com.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts