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:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user