remix logo

Hacker Remix

Ask HN: Is there a decent configuration format?

7 points by xena 2 days ago | 1 comment

Hey all,

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.

Thanks in advance!

rlupi 1 day ago

In TOML you can use triple-quoted strings to avoid double escaping backslashes.

There is one example right at the bottom of https://toml.io/en/