gloml

Types

pub type DecodeError {
  InvalidTomlError(String)
  UnexpectedFormat(List(dyn.DecodeError))
}

Constructors

  • InvalidTomlError(String)
  • UnexpectedFormat(List(dyn.DecodeError))

Functions

pub fn decode(from toml_string: String, using decoder: fn(Dynamic) ->
    Result(a, List(DecodeError))) -> Result(a, gloml.DecodeError)

Parse a toml file with a decoder.

pub fn decode_dynamic(toml_string: String) -> Result(
  Dynamic,
  DecodeError,
)

Parse a toml file into a gleam/dynamic.Dynamic.

pub fn decode_inner(toml_string: String) -> Result(
  Dynamic,
  DecodeError,
)
Search Document