mirror of
https://github.com/lune-org/lune.git
synced 2024-12-12 21:10:36 +00:00
26 lines
369 B
Lua
26 lines
369 B
Lua
local TOML_LINES = {
|
|
"[package]",
|
|
'name = "my-cool-toml-package"',
|
|
'version = "0.1.0"',
|
|
"",
|
|
"[values]",
|
|
"epic = true",
|
|
"",
|
|
}
|
|
|
|
local TOML_STRING = table.concat(TOML_LINES, "\n")
|
|
|
|
local TOML_TABLE = {
|
|
package = {
|
|
name = "my-cool-toml-package",
|
|
version = "0.1.0",
|
|
},
|
|
values = {
|
|
epic = true,
|
|
},
|
|
}
|
|
|
|
return {
|
|
encoded = TOML_STRING,
|
|
decoded = TOML_TABLE,
|
|
}
|