An open API service indexing awesome lists of open source software.

https://github.com/leen15/golang-ping

ping pong server in golang: respond to /ping with 'pong'
https://github.com/leen15/golang-ping

docker golang healthcheck ping pong

Last synced: 7 months ago
JSON representation

ping pong server in golang: respond to /ping with 'pong'

Awesome Lists containing this project

README

          

# Ping Pong Server in Go
A simple ping pong server used for health check proposes: It responses to /ping with a "pong".

## Usage

This webserver works inside docker, so to use it simple run it:

`docker run -d -p 80:80 leen15/golang-ping`

And now it will response to any ping request:

```
$ curl http://0.0.0.0/ping
pong
```

## License

This project is released under the terms of the [MIT license](http://en.wikipedia.org/wiki/MIT_License).