问HN:有没有一种不错的配置格式?
大家好,
我正在开发一个机器人保护软件,遇到的问题是 YAML 格式的限制常常在最糟糕的时刻出现。有没有一种配置格式,可以让技术水平较低的人更容易使用,并且在字符串中编写正则表达式时不需要对反斜杠进行双重转义?我还需要它在 Go 语言中有良好的支持,理想情况下能够与 encoding/json 保持相同的语义。
提前感谢大家的帮助!
查看原文
Hey all,<p>I'm working on bot protection software and something I've run into is that YAML landlines can and will hit you at the worst times possible. Is there a configuration format that makes it easy to use for less technically apt people and lets you write regular expressions without having to double escape backslashes in strings? I also need it to have good support in Go, ideally with a way to get the same semantics as encoding/json.<p>Thanks in advance!