You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
go-ucfg supports lookup based on the result string value. Lookup fails when the final expansion is an object, but still works if the target is a primitive value.
setting: ${${select}}
select: test
test:
key: value
Expected output:
$ go run main.go a.yml
{
"select": "test",
"setting": "a",
"test": "a"
}
$ go run main.go b.yml
{
"select": {
"key": "value",
},
"setting": "a",
"test": {
"key": "value"
}
}
Actual output:
go run main.go a.yml
{
"select": "test",
"setting": "a",
"test": "a"
}
$ go run main.go b.yml
2020/02/22 09:46:45 type mismatch accessing 'setting' (source:'b.yml')
exit status 1
The text was updated successfully, but these errors were encountered:
go-ucfg supports lookup based on the result string value. Lookup fails when the final expansion is an object, but still works if the target is a primitive value.
Test program:
First test file (a.yml):
Second test file (b.yml):
Expected output:
Actual output:
The text was updated successfully, but these errors were encountered: