aboutsummaryrefslogtreecommitdiff
path: root/aoc2023/build/packages/gleam_erlang/README.md
blob: ffee4cd751f29608f64068df566e94bacd4d9d83 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# Gleam Erlang 🐙

A library for making use of Erlang specific code!

## Features

- Typed Erlang processes and message sending.
- Erlang binary format (de)serialisation.
- Functions for working with Erlang's charlists.
- Reading, writing, and deletion of files.
- Basic distributed Erlang support and working with nodes.
- Reading and writing of environment variables.
- Functions for working with atoms.

## Usage

Add this library to your Gleam project

```shell
gleam add gleam_erlang
```

And then use it in your code

```gleam
import gleam/io
import gleam/erlang/file

pub fn main() {
  assert Ok(contents) = file.read("pokedex.txt")
  io.println(contents)
}
```

Documentation can be found at <https://hexdocs.pm/gleam_erlang/>.

This library requires OTP 23.0 or higher.