Configuring Go

Discover our Public Cloud offer

Shared Hosting for Everyone, imagined by developers, for developers.

Discovering the Public Cloud

Version

As Go is a compiled language, it does not have to be installed at alwaysdata to be used. We do however provision with version 1.22 for the go executable.

You can compile your programs elsewhere, e.g. locally.

HTTP deployment

To deploy an HTTP application with Go, create a User program type site in the Web > Sites section.

User Program Site Type
User Program Site Type

After compiling the program and loading it into your account, you need to specify the command that starts your Go application, for example:

$ $HOME/myapp/hello

Your application must absolutely listen to IP and the port shown in the site configuration in the Command field. The IP / HOST and PORT environment variables can also be used.