Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
dropwhile committed Mar 18, 2024
1 parent 0bfaa79 commit 9efc19a
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"))
}
```

Expand Down

0 comments on commit 9efc19a

Please sign in to comment.