gloml

Package Version Hex Docs

A toml parsing library for gleam ✨ All gleam targets and runtimes are supported by gloml.

Timestamps are not currently supported.

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

cd priv; npm install; cd .. # install dependencies for js
gleam test  # Run the tests

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.

Search Document