Skip to content

A Golang application which exposes a single HTTP endpoint `/health`. I use this application as a sample app when experimenting with infrastructure and provisioning tools and processes.

Notifications You must be signed in to change notification settings

WillRochaThomas/example-go-service

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

Example Go Service

This is a Golang application which exposes a single HTTP endpoint /health that will return a HTTP 200 response containing a JSON body:

{
    "status": "UP"
}

I use this application as a sample app when experimenting with infrastructure and provisioning tools and processes.

Build and run the application

You will need Golang installed, this application was developed using 1.11.2. There's lots of good setup guides for whatever OS you're using e.g. (for Mac)[http://sourabhbajaj.com/mac-setup/Go/README.html]

Then just run:

go build
./example-go-service (omit the './' if you're on Windows)

About

A Golang application which exposes a single HTTP endpoint `/health`. I use this application as a sample app when experimenting with infrastructure and provisioning tools and processes.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages