hello-app

command module
v0.0.0-...-a231a22 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 5, 2022 License: MIT Imports: 5 Imported by: 0

README

hello-app

Motivation

Just a test application. I am using this when I need an echo-server or an endpoint which always returns 200. Also it logs the incomings requests like the format below.

2021/02/14 20:41:04 GET /abc
2021/02/14 20:41:04 GET /xyz?param1=value1&param2=value2
2021/02/14 20:41:04 POST /qwe

Usage

Available on DockerHub

Run command below for to start the hello-app

$ docker run -p 8082:8081 --rm erkanzileli/hello-app

Test it

$ curl localhost:8082/xyz
Hello!

Looking the container logs

2021/02/14 18:18:49 Running on :8081
2021/02/14 18:18:55 GET /xyz

Contribution

If you think something can be better the please do it without any thought. Of course all contributions are welcome.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL