View Source Jetenv.Decode (Jetenv v0.1.2)

Key and value decoding.

Summary

Functions

Convert environment style key/values into a configuration.

Functions

@spec decode(
  [{String.t(), String.t()}, ...],
  keyword()
) :: keyword()

Convert environment style key/values into a configuration.

Keys are expected to be keyword path strings separated by double underscores with a trailing type specifier.

Derives a deep Keyword path from the key provided. Performs type conversion of value based on type suffix.

See Jetenv for type information.