...

Text file src/github.com/BurntSushi/toml/internal/toml-test/tests/valid/array/mixed-string-table.toml

Documentation: github.com/BurntSushi/toml/internal/toml-test/tests/valid/array

     1contributors = [
     2  "Foo Bar <foo@example.com>",
     3  { name = "Baz Qux", email = "bazqux@example.com", url = "https://example.com/bazqux" }
     4]
     5
     6# Start with a table as the first element. This tests a case that some libraries
     7# might have where they will check if the first entry is a table/map/hash/assoc
     8# array and then encode it as a table array. This was a reasonable thing to do
     9# before TOML 1.0 since arrays could only contain one type, but now it's no
    10# longer.
    11mixed = [{k="a"}, "b", 1]

View as plain text