Clone
8
Home
Haelnorr edited this page 2026-01-21 19:20:52 +11:00

h/golib Wiki

Welcome to the h/golib documentation wiki. This wiki provides comprehensive documentation for all golib modules.

Modules

HLog

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.

HWS

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.

HWSAuth

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

JWT (JSON Web Token) generation and validation with database-backed token revocation support. Supports multiple database backends and ORMs.

EZConf

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.

TMDB

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.

env

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.

cookies

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

go get git.haelnorr.com/h/golib/jwt

Contributing

For issues, feature requests, or contributions, please visit the golib repository.