A barebones Go app, which can easily be deployed to Heroku.
This application supports the Getting Started with Go on Heroku article - check it out.
Make sure you have Go version 1.12 or newer and the Heroku Toolbelt installed.
$ git clone https://github.com/heroku/estudios-go-heroku.git
$ cd estudios-go-heroku
$ go build -o bin/estudios-go-heroku -v .
github.com/mattn/go-colorable
gopkg.in/bluesuncorp/validator.v5
golang.org/x/net/context
github.com/heroku/x/hmetrics
github.com/gin-gonic/gin/render
github.com/manucorporat/sse
github.com/heroku/x/hmetrics/onload
github.com/gin-gonic/gin/binding
github.com/gin-gonic/gin
github.com/heroku/estudios-go-heroku
$ heroku local
Your app should now be running on localhost:5000.
$ heroku create
$ git push heroku master
$ heroku open
or
For more information about using Go on Heroku, see these Dev Center articles: