Go proxy demo project
A minimal Gobeta module that resolves a public dependency through the Craftifact demo instance.
Quick path
- Export your token as
CRAFTIFACT_TOKEN. - Point
GOPROXYto the demo instance:
https://__token__:${CRAFTIFACT_TOKEN}@demo.craftifact.com/repository/go/go-proxy,direct
- Change into
static/examples/go-proxy-demo/. - Run
go test ./...andgo run ..
What is in the example
The example is intentionally small:
go.moddeclares one dependency,github.com/BurntSushi/toml.main.godecodes a tiny TOML config and prints one line.main_test.goproves the code path withgo test.
Files
Why this works for a demo
The module path stays simple, but the dependency fetch still goes through the Craftifact demo instance. That keeps the setup realistic without making the example project itself complicated.
If you want a more production-like setup later, the same pattern also works with a private module path and a robot token.