Replies: 1 comment
-
Do you have an example? The json loader is going to load raw json and allow you to walk that. If you try to scan into something that then has json tags that might be a problem. Otherwise when you load single values it expects you to specify the default value eg. config.Get("foo").String("default value") |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all,
I'm trying to figure out how to make my configuration loading logic fail when i am missing a required field. I'm also looking to figure out how to set default struct field values for values that have fallback available. the config package claims to have implemented this but i do not see where or how.
thanks,
Beta Was this translation helpful? Give feedback.
All reactions