git.sr.ht/~pingoo/stdx@v0.0.0-20240218134121-094174641f6e/toml/internal/toml-test/tests/valid/spec-example-1.toml (about) 1 # This is a TOML document. Boom. 2 3 title = "TOML Example" 4 5 [owner] 6 name = "Lance Uppercut" 7 dob = 1979-05-27T07:32:00-08:00 # First class dates? Why not? 8 9 [database] 10 server = "192.168.1.1" 11 ports = [ 8001, 8001, 8002 ] 12 connection_max = 5000 13 enabled = true 14 15 [servers] 16 17 # You can indent as you please. Tabs or spaces. TOML don't care. 18 [servers.alpha] 19 ip = "10.0.0.1" 20 dc = "eqdc10" 21 22 [servers.beta] 23 ip = "10.0.0.2" 24 dc = "eqdc10" 25 26 [clients] 27 data = [ ["gamma", "delta"], [1, 2] ] 28 29 # Line breaks are OK when inside arrays 30 hosts = [ 31 "alpha", 32 "omega" 33 ]