proto-socket/examples/go-module-consumer/README.md
toki 8daf53003d 기능: 브라우저 WebSocket 진입점을 추가한다
브라우저 번들에서 Node 전용 ws 의존성을 분리하고 Go 모듈 경로를 현재 저장소명과 맞추기 위해 진입점과 import 경로를 정리한다.
2026-05-20 07:30:53 +09:00

39 lines
673 B
Markdown

# 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.
```bash
go env -w GOPRIVATE=git.toki-labs.com
go env -w GONOSUMDB=git.toki-labs.com
```
If authentication is required, configure either `~/.netrc`:
```text
machine git.toki-labs.com
login toki
password <personal_access_token>
```
or a Git URL rewrite:
```bash
git config --global url."https://toki@git.toki-labs.com/".insteadOf "https://git.toki-labs.com/"
```
## Install Or Update
```bash
go get git.toki-labs.com/toki/proto-socket/go@latest
go mod tidy
```
## Run
```bash
go run .
```