使用参数化引用进行Typesafe替换

时间:2015-05-08 16:13:39

标签: typesafe hocon

是否有可能实现这样的目标:

region : 2

regions {
    1 : us-east-1
    2 : eu-west-1
    3 : sa-east-1
}

# Desired outcome is `name : eu-west-1` (depending on the region value)
name : ${regions.${region}}

0 个答案:

没有答案