Starting from version 1.26 Serverless Framework includes two Golang templates:
aws-go
- basic template with two functionsaws-go-dep
- recommended template usingdep
package manager
You can use them with create
command:
serverless create -t aws-go-dep
Original README below.
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
- Deploy!
serverless deploy