TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask HN: Is there a decent configuration format?

7 pointsby xena19 days ago
Hey all,<p>I&#x27;m working on bot protection software and something I&#x27;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&#x2F;json.<p>Thanks in advance!

1 comment

rlupi18 days ago
In TOML you can use triple-quoted strings to avoid double escaping backslashes.<p>There is one example right at the bottom of <a href="https:&#x2F;&#x2F;toml.io&#x2F;en&#x2F;" rel="nofollow">https:&#x2F;&#x2F;toml.io&#x2F;en&#x2F;</a>