vendor/github.com/pelletier/go-toml/example-crlf.toml
changeset 265 05c40b36d3b2
parent 264 8f478162d991
child 266 80973a656b81
equal deleted inserted replaced
264:8f478162d991 265:05c40b36d3b2
     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 
       
    28 [clients]
       
    29 data = [ ["gamma", "delta"], [1, 2] ] # just an update to make sure parsers support it
       
    30 score = 4e-08 # to make sure leading zeroes in exponent parts of floats are supported