aboutsummaryrefslogtreecommitdiff
path: root/src/content/chapter4_standard_library/lesson00_standard_library_package
diff options
context:
space:
mode:
authorLouis Pilfold <louis@lpil.uk>2023-12-26 22:36:40 +0000
committerLouis Pilfold <louis@lpil.uk>2023-12-26 22:36:40 +0000
commit02027bcb50098065e57518846f524e8cb8df7323 (patch)
tree6d52599b9257f74b75bee1367c7dbf8b2c462169 /src/content/chapter4_standard_library/lesson00_standard_library_package
parent9f224236b56a7e812f099c3409dc64ab69385806 (diff)
downloadtour-02027bcb50098065e57518846f524e8cb8df7323.tar.gz
tour-02027bcb50098065e57518846f524e8cb8df7323.zip
More content
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.gleam6
-rw-r--r--src/content/chapter4_standard_library/lesson00_standard_library_package/text.html14
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>