This repository has been archived on 2026-01-06. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
vieter/src/env
Jef Roosens d4c803c41c
All checks were successful
ci/woodpecker/pr/docs Pipeline was successful
ci/woodpecker/pr/lint Pipeline was successful
ci/woodpecker/pr/build Pipeline was successful
ci/woodpecker/pr/docker Pipeline was successful
ci/woodpecker/pr/test Pipeline was successful
doc(env): added missing docstring & README
2022-05-16 14:53:48 +02:00
..
env.v doc(env): added missing docstring & README 2022-05-16 14:53:48 +02:00
README.md doc(env): added missing docstring & README 2022-05-16 14:53:48 +02:00

This module provides a framework for parsing a configuration, defined as a struct, from both a TOML configuration file & environment variables. Some notable features are:

  • Overwrite values in config file using environment variables
  • Allow default values in config struct
  • Read environment variable value from file