Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Go 1.24.x Utility Project

A reusable Go module with common utilities I frequently use across projects.

✨ Features

  1. 🔧 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
  2. 🧠 In-memory caching:
    • Lightweight, thread-safe, using sync.Map package.
  3. ❗Error:
    • Smart error responses based on error type.
    • Utility function for sending standardized HTTP error responses.

Installation

go get github.com/iTchTheRightSpot/utility

or

go get github.com/iTchTheRightSpot/utility@<commit-tag>

Discord log view

discord

About

Reusable code

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages