A simple server application built with Echo, a high-performance, extensible, and minimalist Go web framework.
- Exposes a
/versionendpoint to display the current version of the server. - Exposes a
/statusendpoint to check if the server is running. - Graceful shutdown on receiving interrupt signals.
To build:
go build -ldflags "-X main.version=<version>" -o simple_server_v<version>To run:
./simple-server <port>Replace <version> with the desired version string and <port> with the desired port number.