MessagePack encoding/decoding for Gleam.
gleam add gmsg@1
import gmsg
import gleam/io
let data = gmsg.pack_string("hello")
let Ok(bin) = gmsg.to_bit_array(data)
io.println(bit_array.inspect(bin))
// returns Dynamic
let Ok(dynamic) =
gmsg.parse(bin, using: decode.string)
Further documentation can be found at https://hexdocs.pm/gmsg.
gleam test # Run the tests
Apache-2.0 © HeroesLament