envsubst
envsubst copied to clipboard
convert Env to an interface and implement a Functor variant.
when dealing with a large environment (i.e. lots of environment variables), the slice based lookup becomes inperformant. os also allows variable lookups based on keys, which the Functor implementation uses for its core logic.