element.version === currentVersion)) { versionNodes.unshift({ version: currentVersion, url: "#" }); } document.querySelector("#project-version").innerHTML = versionNodes.reduce( (acc, element) => { const status = currentVersion === element.version ? "selected disabled" : ""; return ` ${acc} `; }, `
gloml · v0.1.3

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