diff options
Diffstat (limited to 'src/content/chapter4_standard_library/lesson00_standard_library_package')
-rw-r--r-- | src/content/chapter4_standard_library/lesson00_standard_library_package/code.gleam | 6 | ||||
-rw-r--r-- | src/content/chapter4_standard_library/lesson00_standard_library_package/text.html | 14 |
2 files changed, 20 insertions, 0 deletions
diff --git a/src/content/chapter4_standard_library/lesson00_standard_library_package/code.gleam b/src/content/chapter4_standard_library/lesson00_standard_library_package/code.gleam new file mode 100644 index 0000000..a842430 --- /dev/null +++ b/src/content/chapter4_standard_library/lesson00_standard_library_package/code.gleam @@ -0,0 +1,6 @@ +import gleam/io + +pub fn main() { + io.println("Hello, Joe!") + io.println("Hello, Mike!") +} diff --git a/src/content/chapter4_standard_library/lesson00_standard_library_package/text.html b/src/content/chapter4_standard_library/lesson00_standard_library_package/text.html new file mode 100644 index 0000000..f5d7505 --- /dev/null +++ b/src/content/chapter4_standard_library/lesson00_standard_library_package/text.html @@ -0,0 +1,14 @@ +<p> + The Gleam standard library is a regular Gleam package that has been published + to the <a href="https://hex.pm">Hex</a> package repository. You could opt to + not use if you wish, though almost all Gleam projects depend on it. +</p> +<p> + All of the modules imported so far in this guide, such as + <code>gleam/io</code>, are from the standard library. +</p> +<p> + All of the documentation for the standard library is available on + <a href="https://hexdocs.pm/gleam_stdlib/">HexDocs</a>. We will go over some + of the most commonly used modules now. +</p> |