This example application starts a hello world HTTP server on port 8085 and then uses the ngrok Go SDK (golang.ngrok.com/ngrok/v2) to forward public traffic to that server. See the quickstart and SDK reference for more details. When you run it, you'll get a public URL that anyone can use to access your app.
git clone git@github.com:ngrok/go-sdk-example.git
cd go-sdk-example
NGROK_AUTHTOKEN=<token> go run main.goMIT