A sample Go application to deploy to Cloud Foundry which works out of the box. | Read-only mirror of https://github.com/swisscom/cf-sample-app-go — Swisscom. Issues & pull requests at the source.
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2024-10-16 17:16:07 +02:00
.gitignore Add vendor to gitignore 2016-11-08 10:11:14 +01:00
CODE_OF_CONDUCT.md Compliance bulk update. Add CODE_OF_CONDUCT.md 2024-10-16 17:16:07 +02:00
CONTRIBUTING.md Compliance bulk update. Add CONTRIBUTING.md 2024-10-16 17:16:06 +02:00
go.mod update to newer example 2022-08-26 11:44:13 +02:00
LICENSE Add license file 2017-05-29 11:01:27 +02:00
main.go update to newer example 2022-08-26 11:44:13 +02:00
README.md update to newer example 2022-08-26 11:44:13 +02:00

CF Sample App Go

A sample Go application to deploy to Cloud Foundry which works out of the box.

Run locally

  1. Install Go
  2. Run go run main.go
  3. Visit http://localhost:8080

Run in the cloud

  1. Run cf push my-go-app -m 128M --random-route
  2. Visit the given URL