stdsym simplifies Go documentation exploration by extracting all exported
symbols from the standard library, enabling fuzzy searching (fzf) through Go
documents.
Watch a quick demonstration showcasing the usage of this tool:
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)"'