Inline tables provides a compact way to define tables.
For example,
table1.toml
[employee]
firstName = "Lakshmana Rao"
lastName = "Gurram"
age = 34
[employee.address]
city = "Bangalore"
street = "Chowdeswari"
country = "Bangaore"
Above employee table can be expressed in compact way like below.
compactTable1.toml
employee = { firstName = "Lakshmana Rao", lastName = "Gurram", age = 34, address = {city = "Bangalore", street = "Chowdeswari", country = "Bangaore"}}
Previous Next Home
No comments:
Post a Comment