github.com/zhuohuang-hust/src-cbuild@v0.0.0-20230105071821-c7aab3e7c840/mergeCode/toml/_examples/invalid.toml (about) 1 # This is an INVALID TOML document. Boom. 2 # Can you spot the error without help? 3 4 title = "TOML Example" 5 6 [owner] 7 name = "Tom Preston-Werner" 8 organization = "GitHub" 9 bio = "GitHub Cofounder & CEO\nLikes tater tots and beer." 10 dob = 1979-05-27T7:32:00Z # First class dates? Why not? 11 12 [database] 13 server = "192.168.1.1" 14 ports = [ 8001, 8001, 8002 ] 15 connection_max = 5000 16 enabled = true 17 18 [servers] 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 28 [clients] 29 data = [ ["gamma", "delta"], [1, 2] ] # just an update to make sure parsers support it 30 31 # Line breaks are OK when inside arrays 32 hosts = [ 33 "alpha", 34 "omega" 35 ]