We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi! What do you think about the possibility of adding prefix support while squashing structs?
Example:
type Bitbucket struct { Token config.Secret `mapstructure:"token"` } type GitHub struct { Token config.Secret `mapstructure:"token"` } type Service struct { Bitbucket `mapstructure:"bitbucket,squash"` GitHub `mapstructure:"github,prefix"` }
BITBUCKET_TOKEN=secret GITHUB_TOKEN=secret
Now, I'm using the following workaround https://github.com/octomation/maintainer/blob/af46d826f7c070347b26fa46efee6dbdee4f8be3/internal/config/tool.go#L53-L64 but want to contribute to mapstructure the possibility to add prefix if squash it has.
squash
The text was updated successfully, but these errors were encountered:
fix mitchellh#288: squash with prefix
c8e19e5
d17edef
No branches or pull requests
Hi! What do you think about the possibility of adding prefix support while squashing structs?
Example:
Now, I'm using the following workaround https://github.com/octomation/maintainer/blob/af46d826f7c070347b26fa46efee6dbdee4f8be3/internal/config/tool.go#L53-L64
but want to contribute to mapstructure the possibility to add prefix if
squash
it has.The text was updated successfully, but these errors were encountered: