I have been building APIs for production environments for many years now, predominently in PHP. After a successful session it was clear that their systems were no cohesive enough, and speed was a major issue.
For the purpose of being to the point, I will not be following how I would usually build an API.
My first step in any API build, is to create a Docker container to run my API on.
// Application is out general purpose Application struct which contains a link through to the main services connected type Application struct { Server *http.Server Router *mux.Router Logger *zap.Logger Config *Config }