UCG, aka Universal Configuration Grammar, is a data notation created in 2017 by Jeremy Wall.
git clone https://github.com/zaphar/ucg
#1449on PLDB | 7Years Old |
A Universal Configuration Grammar
let db_confs = import "db/mysql/hosts.ucg";
let consul_hosts = import "services/consul/hosts.ucg".host_pool;
let conf = {
port = 8888,
addr = "0.0.0.0",
db = {
host = db_confs.host_pool.addr,
port = db_confs.host_pool.port,
database = "myservicedb",
},
config_svc = consul_hosts.url,
};
out json conf;