Readme: Add TODOs, remove old example
This commit is contained in:
parent
24427f6f65
commit
101210188c
1 changed files with 4 additions and 18 deletions
22
README.md
22
README.md
|
@ -10,26 +10,12 @@ WARNING: This library is a personal project to learn Gleam. It is *extremely* in
|
|||
```sh
|
||||
gleam add mbox
|
||||
```
|
||||
```gleam
|
||||
import gleambox
|
||||
import simplifile
|
||||
|
||||
pub fn main() {
|
||||
let mboxcontents =
|
||||
"/path/to/file"
|
||||
|> simplifile.read
|
||||
|> result.unwrap(or: "")
|
||||
TODOs:
|
||||
|
||||
mboxcontents
|
||||
|> gleambox.get_headers
|
||||
|> dict.to_list
|
||||
|> list.map(io.debug)
|
||||
|
||||
mboxcontents
|
||||
|> gleambox.get_body
|
||||
|> io.println
|
||||
}
|
||||
```
|
||||
- [ ] Add example
|
||||
- [ ] Better error propagation
|
||||
- [ ] Handle multi-part MIME messages
|
||||
|
||||
Further documentation can be found at <https://hexdocs.pm/gleambox>.
|
||||
|
||||
|
|
Loading…
Reference in a new issue