go get github.com/lbernardo/entrypoint
Convert Http Request to Generic Request
request := entrypoint.NewRequestByHttp(r) // r is *http.Request and request is entrypoint.Request
Convert Http Response to Generic Response
response := entrypoint.NewResponseToHttp(w, http.StatusOK, responseGen) // response is entrypoint.Response
Convert APIGateway Request to Generic Request
entrypoint.NewRequestByApiGateway(entrypoint.RequestAPIGateway)
Convert Generic Response to API Gateway response
entrypoint.NewResponseToApiGateway(status, response) // status is int and response is entrypoint.Response