Release Your Go Package on pkg.go.dev
Step by step on how to publish a Go package
go.dev
is a site where various resources for Go developers are shared, such as “Get Started”, Tutorial, Packages (pkg.go.dev), and all the official blogs. Among them, Packages is where I visit most, which allows free access to all the open-source Go packages submitted by communities including the native Golang packages. Thanks to all the contributors, I enjoy the great benefit, and sometimes I want to be a contributor myself.
Let’s submit a “complete” package to pkg.go.dev today.
Came pkg.go.dev into being
Before pkg.go.dev’s birth in 2019, packages were managed under godoc.org
, and its releases were managed by godoc
command. And then the latest pkgsite was introduced to provide a single source for packages and modules. Upon the accomplishment of migration in 2021, all the packages and modules were published under pkg.go.dev, and godoc.org became a history.
Publish a package
Only three steps to go according to the official documentation.
* Visiting that page on pkg.go.dev, and clicking the “Request” button. For example: https://pkg.go.dev/example.com/my/module
* Making a request to proxy.golang.org for…