什么是 toml ?
toml 就是 Tom's Obvious, Minimal Language ;由 Tom Preston-Werner 创造(Tom 是 GitHub 联合创始人),目前最新版本为 v0.4.0 ,其规范还在持续变化中~~
toml 是干什么的?
官方文档的说明如下:
TOML aims to be a minimal configuration file format that's easy to read due to obvious semantics. TOML is designed to map unambiguously to a hash table. TOML should be easy to parse into data structures in a wide variety of languages.
也就是说,TOML 的目标是成为一个极简的配置文件格式。TOML 被设计成可以无歧义地被映射为哈希表,从而被多种语言解析。
相关文档
1. github 地址:https://github.com/toml-lang/toml
最权威的地方,有任何风吹草动都会在这里体现!
2. 网传此文对应了 github 上英文说明的翻译
个人觉得,懒得看英文的可以看看此文(友情提醒,其中有翻译错误的地方!)
3.《TOML 简介》
另外一个中文版本,翻译的准确度更高一些,但内容上照 github 上有些简化和缺失!
4.《Intro to TOML》
此文从 Dark Ages 讲起,颇有说书的味道,挺有意思~
目前,已经有一些开源项目中使用了该格式的配置文件,相信你已经遇到了一些~~