I Built A Handy Browser Plugin To Search Docs And Packages Directly From The Address Bar

Written by bubles | Published 2020/08/30
Tech Story Tags: go | golang | search | developer-tools | doc. | we-building | chrome-browser-extension | search-std-docs-in-chrome

TLDR Go Search Extension is a browser plugin to help every Go developer search docs and packages in the address bar instantly. It's hugely fast just like a millisecond-level search. The whole standard library is searchable, so we built the offline index file for whole standard docs. We only support Github, Gitlab, Bitbucket, Gitea, Gita, etc. However, only support Rust Search Extension, which gets a lot of traction from the rust community. The command system brings a handy set of useful and convenient commands to you.via the TL;DR App

Hi all. I'm so honored to introduce my product: Go Search Extension, a handy browser plugin to help every Go developer search docs and package in the address bar instantly.
How does it work? Easy! Just input keyword go + Space in the address bar to activate the extension, then input any keyword you wanna search, the extension will respond to the related result in an instant! It's hugely fast just like a millisecond-level search! Why it so fast? Because we build the offline index file for whole standard docs and packages!
I'm also the creator of Rust Search Extension, which gets a lot of traction from the rust community. More programming versions (such as C/C++, Javascript) are coming. See https://github.com/huhu if you want to know more.
Let's explain it in more detail:
Search std docs
The whole standard library is searchable. No matter a package, func, or interface, the result you desired is just a keystroke away. Select one and enter, you'll be redirected to the proper pkg.go.dev page effortlessly.
Search top 20K packages
Just searching the std library is not enough. So we crawled top starred Go packages from Github and built the index file for TOP 20K, everyone can search those great packages easily and instantly.
Hope you like it, we bring several prefix sign to help you search the corresponding kind of content exclusively. For example, the ! is package searching prefix, the !! is repository mode prefix, the $ is the awesome golang list searching prefix (See the following part). If no prefix sign is specified, the default search is the standard library. :)
Quick jump to git repository
While we searching the top package, we also hope we can jump to the package repository directly. Yeah, this is possible! Just prefix !! before the keyword, you'll open the repository page instead of the default pkg.go.dev page. However, we only support Github, Gitlab, Bitbucket, Gitea, etc.
Awesome golang list search
Awesome Golang is an awesome resource itself for searching. Hence, we indexed the whole list!
Prefix $ before the keyword, you'll get the desired result from the awesome list.
Builtin commands
The command system brings a handy set of useful and convenient commands to you. Each command starts with a : (colon), followed by the name, and function differently in individual. Those commands including but not limited to:
  • :help - Show the help messages.
  • :book - Show all Golang e-books.
  • :conf - Show Golang conferences.
  • :meetup - Show Golang meetups.
  • :social - Show Golang social media.
  • :history - Show your local search history
Page down/up easily
You can press space after the keyword, then increase or decrease the number of - (hyphen) to page down or page up.
Installation
Some links
Github: https://github.com/huhu/go-search-extension
Welcome to give it a try. If you find a bug or something missed, please don't hesitate to let me know. Of course, any issue or PR is welcome too! Thanks! :)

Published by HackerNoon on 2020/08/30