github.com/actis-sro/mapstruct-env

A mapstructure decode hook to transform environment variable keys in your configs to the value from the actual environment variable.


License
MIT
Install
go get github.com/actis-sro/mapstruct-env

Documentation

Env. variable decode hook for mapstructure

Go Reference GitHub go.mod Go version Go Report Card

This simple package contains a handy decode hook made to be used with https://github.com/go-viper/mapstructure, that translates the environment variable references in the given configuration into the actual values from the referenced environment variable.