Skip to content

LightArrayCapital/go-utilities

Repository files navigation

Go Reference

go-utilities

Miscellaneous useful shared Go packages by Cleverse. Forked and maintained by LightArray Capital

utils

Minimalist pure Golang optimized generic utilities.

See here.

errors

Minimalist and zero-dependency errors library with stacktrace support for Go (for wrapping and formatting an errors).

See here.

nullable

A safe way to represent nullable primitive values in Go. Supports JSON serialization.

See here.

queue

Minimalist and zero-dependency low-level and simple queue library for thread-safe and unlimited-size generics in-memory message queue library for Go (async enqueue and blocking dequeue supports).
The alternative way to communicate between goroutines compared to channel

See here.

address

High efficient and minimal utilities library that will help you to work with Ethereum addresses easier. (a go-ethereum helper library)

See here.

fixedpoint

A shopspring/decimal wrapper library for fixed point arithmetic operations.

See here.

logger

A logger utility library, with support for TEXT and JSON logging (with optional GCP log format support). Supports embedding log attributes in context.

See here.

httpclient

Simple valyala/fasthttp wrapper library with user-friendly interface and built-in request/response acquire and release.

See here.

postgres

postgres provides a wrapper around pgx/v5 for connecting to PostgreSQL databases. It simplifies configuration, connection pooling, and integrates structured logging with slog.

See here.

redis

redis provides a wrapper around go-redis (v9) for connecting to Redis servers. It simplifies configuration and integrates structured logging with slog.

See here.

cloudkms

cloudkms provides a simplified wrapper around the Google Cloud Key Management Service (KMS) API, making it easier to encrypt and decrypt data using Cloud KMS keys.

See here.

encryption

encryption provides simple and secure encryption utilities using ChaCha20-Poly1305, with base64 encoding/decoding support.

See here.

errs

errs defines a set of common application errors, built on top of cockroachdb/errors.

See here.

automaxprocs

Automatically set GOMAXPROCS to match Linux container CPU quota by calling automaxprocs.Init().

See here.

validator

A simple validation utility for collecting and managing validation errors. Supports boolean and error-based validation with formatted error messages. Forked from moonrhythm/validator.

See here.

About

Our private fork of Cleverse/go-utilities

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages