package
0.0.0-20181017075525-0c54aeca8397
Repository: https://github.com/mxschmitt/golang-env-struct.git
Documentation: pkg.go.dev

# README

Basic Example

This example shows how you can use envstruct to get variables from the environment easily into a go struct.

Environment Variables

The following variables can be used with the example in the main.go:

  • EXAMPLE_APP_STRING_VAR
  • EXAMPLE_APP_INTEGER_VAR
  • EXAMPLE_APP_NESTED_STRING_VAR
  • EXAMPLE_APP_NESTED_INTEGER_VAR

# Structs

Settings is a example struct which can be used with envstruct.