Stubs

Generating code

Generated SDKs: Go

Go modules are named stubs.dev/gen/go/{owner}/{module}/{pluginOwner}/{plugin}, with /v2 and so on for plugins at v2 or later. The module's SDKs tab shows the exact path and version.

Get the module

export GOPROXY=https://stubs.dev/gen/go,https://proxy.golang.org,direct
export GONOSUMDB=stubs.dev/gen/go
go get stubs.dev/gen/go/acme/payments/protobuf-go@<version>

Private modules

Go sends the token from ~/.netrc; use one with the sdk:read scope:

machine stubs.dev
login __token__
password YOUR_SDK_TOKEN