Framework recipes
Go
main.gogo
import (
"net/http"
"os"
)
func main() {
port := os.Getenv("APP_PORT")
if port == "" {
port = "8000"
}
http.ListenAndServe("0.0.0.0:" + port, router)
}Dashboard → Commandsbash
# BUILD_COMMANDS
go mod download && go build -o app .
# RUN_COMMAND
./app