1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

toml: small refactor, move all json functionality to submodule (#12502)

This commit is contained in:
Larpon
2021-11-18 12:27:59 +01:00
committed by GitHub
parent 5bf28c5287
commit 7ec70d5477
17 changed files with 223 additions and 200 deletions

View File

@@ -1,4 +1,5 @@
import toml
import toml.to
// Complete text from the example in the README.md:
// https://github.com/toml-lang/toml/blob/3b11f6921da7b6f5db37af039aa021fee450c091/README.md#Example
@@ -43,6 +44,6 @@ fn main() {
ip := doc.value('servers.alpha.ip').string()
println('Server IP: "$ip"')
toml_json := doc.to_json()
toml_json := to.json(doc)
println(toml_json)
}