forked from kelseyhightower/envconfig
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow population of a slice of structs
Solves kelseyhightower#169 Enables population of a slice of structs, in the most expected way: MYAPP_SLICE_0_FOO=foo MYAPP_SLICE_0_BAR=bar MYAPP_SLICE_1_FOO=foo MYAPP_SLICE_1_BAR=bar Would fill a slice of []struct{Foo, Bar string} Usage printout also supports this slices, printing them as a single MYAPP_SLICE_[N]_FOO MYAPP_SLICE_[N]_BAR Variables to be filled, which should be understood as slices with numerical indexes.
- Loading branch information
Showing
9 changed files
with
504 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.