Starting from version 1.26 Serverless Framework includes two Golang templates:
aws-go- basic template with two functions
aws-go-dep- recommended template using
You can use them with
serverless create -t aws-go-dep
Original README below.
Serverless Template for Golang
This repository contains template for creating serverless services written in Golang.
- Create a new service based on this template
serverless create -u https://github.com/serverless/serverless-golang/ -p myservice
- Compile function
cd myservice GOOS=linux go build -o bin/main