Hacker News new | ask | show | jobs
Show HN: Search the Go Standard Library (gothrough.dev)
27 points by g-harel 1096 days ago
4 comments

I regularly forget where/whether interfaces and constants exist, so I made myself this ranked & filterable search tool.

The hosted deployment covers the standard library + a few other packages, but it's built to be able to be pointed at any (internal) codebase too! Just need to build an index with more packages installed https://github.com/g-harel/gothrough

Im kinda wondering since the complete source is open and hosted and github (with current previews enabled) even has a usefull search - what is the actualy benefit?

Also if you are using goland (not everyone is i know thats why i pointed it out as second argument) you have the complete standard-lib lookup ready via the IDE.

Maybe im missing something and this is usefull but im coding go for several years now and dont see the point

That's a fair question... ultimately it's possible to get something similar using other tools, but IMO it won't be as easy. Just as a contrived example with a simple query:

https://gothrough.dev/search?q=writer

https://github.com/search?q=repo%3Agolang%2Fgo+writer&type=c...

The problem I really wanted to solve for myself was primarily discovery for standard interfaces. I don't write Go code as regularly as I'd like and don't have code review from a professional setting.

Amazing project! Could i ask you a question? Did you created a search engine with a indexer? What algorithm are you using to index the strings?
Looks cool! But what distinguishes it from pkg.go.dev?