A reusable Go module with common utilities I frequently use across projects.
- 🔧 Structured logging:
- Optional HTTP middleware for request logging.
- Optional HTTP middleware to load single page applications.
⚠️ Warning, do not store sensitive file(s) in SPA directory.
- Built-in Discord integration for real-time alerts
- 🧠 In-memory caching:
- Lightweight, thread-safe, using sync.Map package.
- ❗Error:
- Smart error responses based on error type.
- Utility function for sending standardized HTTP error responses.
go get github.com/iTchTheRightSpot/utility
or
go get github.com/iTchTheRightSpot/utility@<commit-tag>
