This message was deleted.
# golang
s
This message was deleted.
s
I tried with various versions of "foobar" or foobar without the quotes
Interesting is the code points to the 'o' and not f .. I even tried setting "false" and then the code complains about false being boolean and my target go type is a string
Not so "fun fact", when I change my code from config.RequireObject to foo := config.Require it works ..
l
That sounds odd. Would you mind opening a bug with a repro.
config.require
does return a string.
requireObject
will read the string value and attempt to unmarshal it into the provided interface (a string in your case). I image that you probably want
require
in this case
👍 1
s
Will open a bug report