Closed nomikz closed 6 months ago
in case you didn't know, it works when you provide a delimiter: env.Provider("", ".", nil)
@wass3r thanks. But this is undefined behaviour. Although I didn't provide delimeter, accessing with k.String("key") in above example works fine. However, the field didn't get unmarshalled.
Description:
koanf.Unmarshal doesn't work when loaded by env provider
Is this expected behaviour?
Test: this test has no dependencies like files, envrionemnt variables.
Expected behavior Value must have been successfully unmarshalled into a struct.