www/src/content/docs/blog/go-runtime-support.mdx
import { YouTube } from '@astro-community/astro-embed-youtube';
SST v3 now supports the go runtime for your Lambda functions. Golang is a great option for tasks that are more compute intensive and it also has faster cold starts. We talk about it here:
You can use Go in SST by setting the runtime prop and pointing the handler to the directory with your Go function.
new sst.aws.Function("MyFunction", {
runtime: "go",
link: [bucket],
handler: "./src"
});
For more details, check out our Go example.
Also in this update:
You can use our new Go SDK to access linked resources in your Go functions or container applications.
import (
"github.com/sst/sst/v3/sdk/golang/resource"
)
resource.Get("MyBucket", "name")
The Go SDK does not support the clients that are available in the JS SDK.
You can view Go function logs in the Console. Support for Issues is coming soon.