go-env

A go library for managing env variables. Loads variables either from environment or from .env(customizable name) file. Variables from environment always have precedence.

Variables can be required or optional with default(zero value or user provided value).

Usage

Simple example

Nested structs

Load variables with prefix