Netlify, the hosting and web platform, allows you to create “functions” along with their CDN. These functions are hosted on AWS’ Lambda and can be accessible via a URL. So you can create static sites, with extra ability and dynamism (like we use on this site).
We wanted to share a post giving an example how to write one of these functions in Go. The aim of the code (below) is to return the version of golang.
We installed the Netlify cli to make our lives a little easier.
Create our new function, we called it go-version
Update the code (see below for file path and code)