UNPKG

729 BPlain TextView Raw
1# This is a TOML document. Boom.
2
3title = "TOML Example"
4
5[owner]
6name = "Tom Preston-Werner"
7organization = "GitHub"
8bio = "GitHub Cofounder & CEO\n\tLikes \"tater tots\" and beer and backslashes: \\"
9dob = 1979-05-27T07:32:00Z # First class dates? Why not?
10
11[database]
12server = "192.168.1.1"
13ports = [ 8001, 8001, 8003 ]
14connection_max = 5000
15connection_min = -2 # Don't ask me how
16max_temp = 87.1 # It's a float
17min_temp = -17.76
18enabled = true
19
20[servers]
21
22 # You can indent as you please. Tabs or spaces. TOML don't care.
23 [servers.alpha]
24 ip = "10.0.0.1"
25 dc = "eqdc10"
26
27 [servers.beta]
28 ip = "10.0.0.2"
29 dc = "eqdc10"
30
31[clients]
32data = [ ["gamma", "delta"], [1, 2] ] # just an update to make sure parsers support it