Open xocasdashdash opened 7 years ago
Have similar issue with hcl
; not unmarshalling correctly, using main repo (Go 1.9.2, Ubuntu 16.04) - more info and code here. It works perfectly well with yaml
- code is provided for this one too.
I am also having this issue with the master branch of Viper on the latest version of Go, is there a fix?
same here
HCL will be dropped from the core after 1.20.0
You can add it back from the encoding repo: https://github.com/go-viper/encoding/
I'm having some issues reading an HCL configuration and I've managed to reproduce the problem with this code
Now if you run this you get the following output:
So the configuration is detecting the 3 values but it is not parsing them correctly.
Am I doing something obviously wrong? I'm pretty sure that if I have something wrong it will be the mapstructure tags.
Any examples on how to deal with this case?