config

package
v1.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 13, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package config loads environment variables into typed structs using default and required struct tags.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadConfig

func LoadConfig(out any) error

LoadConfig loads configuration from environment variables (and a .env file if present) into the struct pointed to by out, using "mapstructure" tags. Supported extra tags: "default" (fallback value) and "required" ("true"). out must be a non-nil pointer to a struct.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL