项目作者: Leen15

项目描述 :
ping pong server in golang: respond to /ping with 'pong'
高级语言: Go
项目地址: git://github.com/Leen15/golang-ping.git
创建时间: 2019-07-30T08:30:17Z
项目社区:https://github.com/Leen15/golang-ping

开源协议:

下载


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:

  1. $ curl http://0.0.0.0/ping
  2. pong

License

This project is released under the terms of the MIT license.