Sign inSign up

brunocrt/hellogo

By brunocrt

•Updated over 7 years ago

Simple Hello World API using Golang

Image
0

127

brunocrt/hellogo repository overview

To run the API simple run the following command

docker run -p 8080:8080 brunocrt/hellogo

To test it, point your browser to the following URL:

http://localhost:8080/api/hello⁠

You can also add a parameter:

http://localhost:8080/api/hello?param1=TestParameter⁠

And also change the version, adding an environment variable VERSION=v2 export VERSION=v2 (on linux) set VERSION=v2 (on windows) and then restart the container

Tag summary

Content type

Image

Digest

Size

6.5 MB

Last updated

over 7 years ago

docker pull brunocrt/hellogo