From 9efc19ac295f26a93a94de8363c91ea64af75821 Mon Sep 17 00:00:00 2001 From: elij Date: Mon, 18 Mar 2024 14:02:28 -0700 Subject: [PATCH] update readme --- README.md | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 8595262..ea62647 100644 --- a/README.md +++ b/README.md @@ -8,9 +8,19 @@ gleam add gbase32_clockwork ``` ```gleam import gbase32_clockwork +import gbase32_clockwork/options.{Lowercase} pub fn main() { - // TODO: An example of the project in use + let codebook = gbase32_clockwork.new([]) + + codebook.encode("foobar") + |> should.equal(Ok("CSQPYRK1E8")) + + // to emit as lowercase + let codebook_lc = gbase32_clockwork.new([Lowercase]) + + codebook.encode("foobar") + |> should.equal(Ok("csqpyrk1e8")) } ```