Skip to content

env

A highly secure Go environment variable management library supporting .env, JSON, and YAML formats, with thread safety, audit logging, and secure storage.

Core Features

  • Multi-Format Support - .env, JSON, YAML auto-detection
  • Type Safety - Automatic type conversion and validation
  • Thread Safety - Thread-safe concurrent access with sharded locking
  • Secure Storage - Memory locking and auto-zeroing for sensitive values
  • Audit Logging - Complete operation tracking
  • Variable Expansion - ${VAR} syntax support
  • Struct Mapping - Tag-driven configuration binding

Key Features Overview

FeatureDescription
Type ConversionGetString, GetInt, GetBool, GetDuration, GetSlice
Struct MappingTag-driven configuration binding
Secure StorageMemory-protected sensitive values
Multi-Format Loading.env, JSON, YAML

Quick Navigation

Getting Started

API Reference

Security