UPDATE

Starting from version 1.26 Serverless Framework includes two Golang templates:

  • aws-go - basic template with two functions
  • aws-go-dep - recommended template using dep package manager

You can use them with create command:

serverless create -t aws-go-dep

Original README below.


Serverless Template for Golang

This repository contains template for creating serverless services written in Golang.

Quick Start

  1. Create a new service based on this template
serverless create -u https://github.com/serverless/serverless-golang/ -p myservice
  1. Compile function
cd myservice
GOOS=linux go build -o bin/main
  1. Deploy!
serverless deploy