Debian Codegraph @

third_party/rust/basic-toml/tests/valid/example2.toml

raw
1 # This is a TOML document. Boom.
2
3 title = "TOML Example"
4
5 [owner]
6 name = "Tom Preston-Werner"
7 organization = "GitHub"
8 bio = "GitHub Cofounder & CEO\nLikes tater tots and beer."
9 dob = 1979-05-27T07:32:00Z # First class dates? Why not?
10
11 [database]
12 server = "192.168.1.1"
13 ports = [ 8001, 8001, 8002 ]
14 connection_max = 5000
15 enabled = true
16
17 [servers]
18
19 # You can indent as you please. Tabs or spaces. TOML don't care.
20 [servers.alpha]
21 ip = "10.0.0.1"
22 dc = "eqdc10"
23
24 [servers.beta]
25 ip = "10.0.0.2"
26 dc = "eqdc10"
27 country = "中国" # This should be parsed as UTF-8
28
29 [clients]
30 data = [ ["gamma", "delta"], [1, 2] ] # just an update to make sure parsers support it
31
32 # Line breaks are OK when inside arrays
33 hosts = [
34 "alpha",
35 "omega"
36 ]
37
38 # Products
39
40 [[products]]
41 name = "Hammer"
42 sku = 738594937
43
44 [[products]]
45 name = "Nail"
46 sku = 284758393
47 color = "gray"