All types must be written on a single line, except for multiline strings and arrays

number = 123 # This is a note
float = 123.32
string = "123"
multiLineText = """
line1
line2
line3
"""
booleanTrue = true
booleanFalse = false

integerArray = [1.2.3.4.5] Array takes the first element as type, such as int
# numberArray = [1, 1.2] # Cannot add value of type Float to array of type Integer
stringArray = ['1'.'2'.'3'.'4'] # ok
# mixArray = [123.32, 1, true, '333'] # Cannot add value of type Float to array of type Integer

objectArray = [
  { format = '.json', },
  { format = '.yaml', },
  { format = '.toml',},]object1 = { format = '.json',}[object2]
property1 = 123
property2 = "123.32"

[object3]
property1 = 123
property2 = "123.32"
Copy the code