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

Package config: Unmarshal: Add support for field tags. #82

Open
octo opened this issue May 19, 2020 · 0 comments
Open

Package config: Unmarshal: Add support for field tags. #82

octo opened this issue May 19, 2020 · 0 comments

Comments

@octo
Copy link
Member

octo commented May 19, 2020

Similar to encoding/json and other packages, it would be nice to use struct field tags to control the unmarshalling behavior. For example:

  • Write block values (arguments of config blocks) to an arbitrary field (currently hard-coded to Args).
  • Control if and where to store Block.Key (used to look up fields in a struct but not stored in the target).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant