Skip to content

env

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

Core Features

  • Multi-format Support - Automatic detection of .env, JSON, YAML
  • Type Safety - Automatic type conversion and validation
  • Thread Safety - Thread-safe concurrent access with sharded locks
  • 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

Feature Overview

FeatureDescription
Type ConversionGetString, GetInt, GetBool, GetDuration, GetSlice
Struct MappingTag-driven configuration binding
Secure StorageSensitive value memory protection
Multi-format Loading.env, JSON, YAML

Quick Navigation

Getting Started

API Reference

Security