go-config-loading

Community

Multi-source config loading with hot reload

Authorkaptinlin
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Consolidate and type-safely load configuration from multiple sources (defaults, files, environment variables, flags, and secrets) into a single Go config model, enabling deterministic merging, runtime inspection, and safe updates.

Core Features & Use Cases

  • Typed configuration loading via a generic API that decodes sources into a Go struct.
  • Deep merge of maps, interpolation of environment variables and secrets, and atomic updates with watch support.
  • Observability and debugging through Explain outputs and OnChange callbacks for dynamic reconfiguration.
  • Common use cases include API services, CLI tools, and background workers that require consistent config across environments.

Quick Start

Install the library, define your AppConfig struct, and call config.Load with a list of sources to populate your configuration.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: go-config-loading
Download link: https://github.com/kaptinlin/gozod/archive/main.zip#go-config-loading

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.