Skip to content
This repository was archived by the owner on Dec 17, 2025. It is now read-only.

Commit 9efc19a

Browse files
committed
update readme
1 parent 0bfaa79 commit 9efc19a

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

README.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,19 @@ gleam add gbase32_clockwork
88
```
99
```gleam
1010
import gbase32_clockwork
11+
import gbase32_clockwork/options.{Lowercase}
1112
1213
pub fn main() {
13-
// TODO: An example of the project in use
14+
let codebook = gbase32_clockwork.new([])
15+
16+
codebook.encode("foobar")
17+
|> should.equal(Ok("CSQPYRK1E8"))
18+
19+
// to emit as lowercase
20+
let codebook_lc = gbase32_clockwork.new([Lowercase])
21+
22+
codebook.encode("foobar")
23+
|> should.equal(Ok("csqpyrk1e8"))
1424
}
1525
```
1626

0 commit comments

Comments
 (0)