internal/toml-test/tests/valid/spec-1.0.0/array-0.toml
raw| 1 | integers = [ 1, 2, 3 ] |
| 2 | colors = [ "red", "yellow", "green" ] |
| 3 | nested_arrays_of_ints = [ [ 1, 2 ], [3, 4, 5] ] |
| 4 | nested_mixed_array = [ [ 1, 2 ], ["a", "b", "c"] ] |
| 5 | string_array = [ "all", 'strings', """are the same""", '''type''' ] |
| 6 | |
| 7 | # Mixed-type arrays are allowed |
| 8 | numbers = [ 0.1, 0.2, 0.5, 1, 2, 5 ] |
| 9 | contributors = [ |
| 10 | "Foo Bar <[email protected]>", |
| 11 | { name = "Baz Qux", email = "[email protected]", url = "https://example.com/bazqux" } |
| 12 | ] |