...

Text file src/github.com/pelletier/go-toml/example.toml

Documentation: github.com/pelletier/go-toml

     1# This is a TOML document. Boom.
     2
     3title = "TOML Example"
     4
     5[owner]
     6name = "Tom Preston-Werner"
     7organization = "GitHub"
     8bio = "GitHub Cofounder & CEO\nLikes tater tots and beer."
     9dob = 1979-05-27T07:32:00Z # First class dates? Why not?
    10
    11[database]
    12server = "192.168.1.1"
    13ports = [ 8001, 8001, 8002 ]
    14connection_max = 5000
    15enabled = 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]
    29data = [ ["gamma", "delta"], [1, 2] ] # just an update to make sure parsers support it
    30score = 4e-08 # to make sure leading zeroes in exponent parts of floats are supported

View as plain text