-
Notifications
You must be signed in to change notification settings - Fork 78
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
Ability Decode to Multiple structs #58
Comments
Does it work if you embed them into one large struct? |
@magiconair not sure what you meant: Option-1 doesn't work.
Option-2 works, but it's not my desired solution/architecture.
|
Does it work if you rename DBConfig to DB in option 1? |
@magiconair nope. |
maybe embedding mean this, move the prefix in tag of embedded struct to tag of parent struct:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In case the properties file has a logical division of the configurations, I'd like to decode to several dedicated structs.
For example:
Given the following
config.properties
fileI'd like to decode to the following structs:
The text was updated successfully, but these errors were encountered: