gloml
A toml decoder for gleam. If you are using javascript, you must install the fast-toml
module.
import gleam/io
pub fn main() {
decode(
"
[my-project]
version = \"1.2.3\"
",
d.field("my-project", d.field("version", d.string)),
)
|> io.println()
}
Quick start
gleam run # Run the project
gleam test # Run the tests
gleam shell # Run an Erlang shell
Installation
If available on Hex this package can be added to your Gleam project:
gleam add gloml
and its documentation can be found at https://hexdocs.pm/gloml.