App Platform Golang Buildpack

Golang

heroku-buildpack-go is utilized as the buildpack for detecting and building your Golang applications.

You can view the README for a full list of configuration options available to the buildpack.

Detection

A Go app is detected based on the existence of one of the following files at the root directory of your source code:

go.mod
Gopkg.toml
Godeps/Godeps.json
vendor/vendor.json
glide.yaml

Customization

Go Version

The version in your go.mod file is automatically detected and used as the version to build your application:

module github.com/digitalocean/sample-golang

go 1.16
...

Limitations