Skip to content

Go

The Go client uses gRPC.

cl, err := platformsdk.Dial("template-grpc.localhost:80", platformsdk.WithInsecure())
hello, err := cl.Hello.GetHello(ctx, &genv1.GetHelloRequest{})
Terminal window
go run ./sdk/go/examples/hello

Needs Go 1.25+.

Terminal window
go get github.com/cloud/platform/sdk/go

Run that from the directory that contains your go.mod. Apple Silicon and Intel both work.