Building Lambda functions with Go - AWS Lambda

Building Lambda functions with Go

The following sections explain how common programming patterns and core concepts apply when authoring Lambda function code in Go.

Go runtimes
Name Identifier Operating system

Go 1.x


Amazon Linux

AWS Lambda provides the following libraries for Go:

  • The implementation of the Lambda programming model for Go. This package is used by AWS Lambda to invoke your handler.

  • Helpers for accessing execution context information from the context object.

  • This library provides type definitions for common event source integrations.


To get started with application development in your local environment, deploy one of the sample applications available in this guide's GitHub repository.

Sample Lambda applications in Go

  • blank-go – A Go function that shows the use of Lambda's Go libraries, logging, environment variables, and the AWS SDK.