proto-socket/examples/go-module-consumer
2026-05-02 07:47:52 +09:00
..
go.mod feat: add go-module-consumer example and update README 2026-05-02 07:47:52 +09:00
go.sum feat: add go-module-consumer example and update README 2026-05-02 07:47:52 +09:00
main.go feat: add go-module-consumer example and update README 2026-05-02 07:47:52 +09:00
README.md feat: add go-module-consumer example and update README 2026-05-02 07:47:52 +09:00

Go Module Consumer

Minimal scaffold for consuming Proto Socket from another Go project.

Private Registry Setup

This module path is hosted on a private Forgejo instance.

go env -w GOPRIVATE=git.toki-labs.com
go env -w GONOSUMDB=git.toki-labs.com

If authentication is required, configure either ~/.netrc:

machine git.toki-labs.com
login toki
password <personal_access_token>

or a Git URL rewrite:

git config --global url."https://toki@git.toki-labs.com/".insteadOf "https://git.toki-labs.com/"

Install Or Update

go get git.toki-labs.com/toki/common-proto-socket/go@latest
go mod tidy

Run

go run .