Skip to content

lotusirous/gostdsym

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fuzzy finding go doc symbols

stdsym simplifies Go documentation exploration by extracting all exported symbols from the standard library, enabling fuzzy searching (fzf) through Go documents.

Demo

Watch a quick demonstration showcasing the usage of this tool:

Demo

Installation

Get started quickly with stdsym:

go install github.com/lotusirous/gostdsym/stdsym@latest

Create a handy gdoc alias for instant symbol lookups:

alias gdoc="stdsym |fzf | xargs go doc "

If you want to view the results on pkg.go.dev and preview them in go doc, use this alias. This example is for macOS, where the open command opens the link in the default browser

alias gd='stdsym -web | fzf --prompt "Symbols> " --preview "go doc \$(echo {} | sed s/#/./g)" --bind "enter:become( echo "https://pkg.go.dev/{}" |xargs open)"'

About

Fuzzy finding go doc symbols

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages