Skip to content

Proposal: envExpand also expand from self #250

@futurist

Description

@futurist

Like below:

type Config struct {
  A string `env:"A" envDefault:"aaa"`
  B string `env:"B" envDefault:"$A---${A}" envExpand:"true"`
}

Will result in:

{"A": "aaa", "B": "aaa---aaa"}

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