๐Ÿš€ fast ๐Ÿš€ robust ๐Ÿš€ asynchronous๐Ÿš€ lightweight๐Ÿš€ production-ready๐Ÿš€ cloud-native๐Ÿš€ non-blocking๐Ÿš€ hello world web server.

  • By Mikhail Titov
  • Last update: Jul 25, 2022
  • Comments: 0

enterprise-hello-world

๐Ÿš€ fast ๐Ÿš€ robust ๐Ÿš€ asynchronous ๐Ÿš€ lightweight ๐Ÿš€ production-ready ๐Ÿš€ cloud-native ๐Ÿš€ non-blocking ๐Ÿš€ secure ๐Ÿš€ hello world web server written in Go.

Building

go build .

Running

./enterprise-hello-world

or

go run .

Configuration

The following environment variables are supported:

Environment variable Description Default value
HELLOWORLD_PORT Server port. 8080
HELLOWORLD_MESSAGERECEIVER Whatever to use in the hello world message according to the following pattern: Hello, {messagereceiver}! World
HELLOWORLD_USERNAME Username to use for Basic auth. admin
HELLOWORLD_PASSWORD Password to use for Basic auth. admin

Heartbeat

Heartbeat is located at /ping

Why?

I made this to get more familiar with Go and for fun.

Download

enterprise-hello-world.zip