Skip to content
New issue

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

fix: ignore fields that don't have an ssm tag #10

Merged
merged 1 commit into from
Oct 9, 2023

Conversation

briskt
Copy link
Contributor

@briskt briskt commented Sep 29, 2023

I process my struct with kelseyhightower/envconfig before passing it to go-ssm-config. The problem with that is any field that has a default tag but no ssm is overwritten with the specified default value. I would like go-ssm-config to skip any field that doesn't have an ssm tag so the value obtained from envconfig is retained. This PR fixes this behavior as documented in the README:

If the ssm tag is missing ssmconfig will ignore the struct field.

@ianlopshire ianlopshire merged commit 04abb80 into ianlopshire:master Oct 9, 2023
1 check failed
@briskt
Copy link
Contributor Author

briskt commented Oct 9, 2023

@ianlopshire thank you for approving and merging this. Do you plan to make a release tag?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants