Skip to content

Support slices of complex types #45

@tarik-hamani-by

Description

@tarik-hamani-by

Slices of complex types are not taken into account.

E.g.

type Config struct {
	Foo []Test `envPrefix:"FOO"`
}
type Test struct {
	Bar string `env:"BAR"`
}

currently results in the following generated file:

# Environment Variables

## Config

 - `FOO_BAR` - 

although the environment variables would be:
FOO_0_BAR, FOO_1_BAR, etc.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions