DEV Community


Search Go packages from navigation bar

Yoshi Yamaguchi
Developer Advocate @Google based in Tokyo. Focus area is Observability; Stackdriver, OpenTelemetry, pprof and any other tools that enables you to observe your system.
Updated on ・2 min read

Find the package

Go team recently announced the new package search system,, will take over the search on

It is often the case to use browsers for searching Go package on Google and, but it seems it's time to create the shortcut for as the engineer who uses Go for daily basis. However, typing "" in the browser navigation takes some time and we'd like to reduce the typing effort if we can. So, let's do it!

In Google Chrome, there's a setting for search engine, and there's a section titled "Manage search engines", where you can set up arbitrary URLs for querying something.

Search engine setting

You may already have a bunch of search engines registered, and here you can add another one for as the following:

Add search engine

In this dialog, you need to put 3 settings, and especially important ones are "Keyword" and "Query URL".

"Query URL" is straightforward. This is the URL template when you query anything with the search engine, and you can specify %s as the placeholder for the query parameters or path name. In the case of, the value is

"Keyword" is what makes your productivity awesome. This is the shortcut name you want to type in the navigation bar of Google Chrome. With the combination of "keyword" and tab key, you can trigger the search engine. For instance, I used pkg for the trigger keyword of, so if you type pkg in the navigation bar and press tab key, then you'll see the following notation on the left side of the navigation bar:

Keyword triggering

In that status, now you can type in Go package name you are looking for, such as, then hit enter key. You can just type in a part of package names as well such as error and so on.

Search result

Here you go! Now it got much easier to find package from the browser.

Photo credit is by

Discussion (0)