Skip to content

Instantly share code, notes, and snippets.

@vrdhn
Created October 10, 2024 02:15
Show Gist options
  • Save vrdhn/7a458a271cece067553a7b280a703e12 to your computer and use it in GitHub Desktop.
Save vrdhn/7a458a271cece067553a7b280a703e12 to your computer and use it in GitHub Desktop.
Gleam quick ref

Directory

A gleam project has following structure:

  • gleam.toml
  • src/**/*.{gleam,erl,mjs}
  • test/**/*.{gleam,erl,mjs}

Gleam.toml must have a name

  • `name = ""

And src and test must have the files

  • src/<package>.gleam
  • test/_test.gleam or src/_test.gleam
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment