Basic server that handles resource cleanup on shutdown. Follows the options pattern for configuration and uses adapters to wrap handlers with middlewares. Only standard libraries are used.
Setup a development container using a sample Go container from VS Code. Testing is done with http files that can be executed with the VS Code requests extension.
- https://code.visualstudio.com/docs/remote/containers
- https://marketplace.visualstudio.com/items?itemName=humao.rest-client
Lightweight server wrappers that can simplify the code even further:
More resources on patterns and best practices: