Skip to main content

yamlcfg: golang library for yaml and env vars config

·1 min

Introducing yamlcfg, a new library designed to simplify YAML and Environment Variable configuration in Golang applications.

I’m excited to introduce yamlcfg, a new library designed to simplify YAML and Environment Variable configuration in Golang applications

This library utilises gopkg.in/yaml.v3 and the os.ExpandEnv function from Go’s standard library to replace any ${SOME_ENV_VAR} or $SOME_ENV_VAR placeholders in a YAML file before unmarshalling the content into the application’s configuration structure

Currently, I’m focusing on keeping this library lightweight and straightforward. However, there are some enhancements in the pipeline. The next planned feature is to enable loading configuration files from embed.FS. I anticipate additional features will be incorporated as the project evolves