Developer SDK

Go examples

Install the SDK · View source on GitHub ↗

Go SDK installation

Go imports the base SDK directly; no CGo wrapper is necessary. The existing versioned Go module is published. Socket examples require a release containing the new Device dialer API.

Install with the native package manager

go get github.com/urnetwork/sdk/v2026@latest

Pin a release with go get github.com/urnetwork/sdk/[email protected]. Keep the import's major version aligned with its module tag.

Supported platforms

Use the platforms supported by the Go SDK and connect transport. A local Device owns the userspace stack; a remote Device uses a running app's RPC connection.

GitHub and local builds

Go modules resolve Git tags and commits. GOPROXY=direct go get github.com/urnetwork/sdk/v2026@ bypasses the module proxy. A main-branch workspace can instead use the root module and its development dependencies.

Examples

  • Integration: service provisioning, scoped client credentials and Device lifecycle.
  • Sockets: TCP/UDP, TLS/DTLS and HTTP client adapters.
  • Messages: live peer discovery and interoperable text/ACK exchange.

Apps use URNETWORK_CLIENT_JWT and a persisted URNETWORK_INSTANCE_ID; only the service backend holds URNETWORK_ROOT_JWT. See the shared contract and official networking research.

Use an SDK release containing the required APIs. The package plan records package names, build outputs and publication gates.

References