h/golib Wiki
Welcome to the h/golib documentation wiki. This wiki provides comprehensive documentation for all golib modules.
Modules
Structured logging package built on top of zerolog. Provides simple configuration via environment variables, flexible output options (console, file, or both), and automatic log file management with high performance.
H Web Server - A lightweight, opinionated HTTP web server framework for Go built on top of the standard library. Features Go 1.22+ routing patterns, built-in middleware, structured error handling, and production-ready defaults.
JWT-based authentication middleware for the HWS web framework. Provides complete authentication solution with access tokens, refresh tokens, automatic token rotation, and seamless database/ORM integration.
JWT (JSON Web Token) generation and validation with database-backed token revocation support. Supports multiple database backends and ORMs.
Unified configuration management system for loading and managing environment-based configurations across multiple packages. Provides source code parsing, .env file generation/updating, and environment variable documentation.
Go client library for The Movie Database (TMDB) API. Features automatic rate limiting, retry logic with exponential backoff, movie search, detailed movie information, cast/crew data, and convenient image URL helpers.
Environment variable utilities for Go applications with type safety and default values. Supports all basic Go types including strings, integers (all sizes), unsigned integers (all sizes), booleans, and time.Duration values with comprehensive boolean parsing.
HTTP cookie utilities for Go web applications with security best practices. Provides secure cookie setting, proper deletion, pagefrom tracking for post-login redirects, and host validation for referer-based redirects.
Installation
Contributing
For issues, feature requests, or contributions, please visit the golib repository.