This repo is responsible for centralizing some core go components into a single library for use by other services. It handles errors, logging, validation, loading environment variables, and utility functions. It is a fundamental part of our E-commerce platform within the DistributedPlayground project. See the project description for more details.
Although it's not necessary to clone this repo to run the Distributed Playground project, Go-Lib
can be easily integrated into any Go project. Here's an example of how you can import one of it's packages:
import (
"github.com/DistributedPlayground/go-lib/httperror"
)
// Usage
return httperror.Internal500(ctx)