summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2022-05-27 15:45:42 -0600
committermo khan <mo@mokhan.ca>2022-05-27 15:45:42 -0600
commit569932f990551850e58350e8b969b54623cae81d (patch)
tree3a3959a82422f297e2410b888e786e7266f92557
parentfc897c425cfe258d8051785889ebe696fcdf21d7 (diff)
add note on modules
-rw-r--r--learn/golang/README.md9
1 files changed, 9 insertions, 0 deletions
diff --git a/learn/golang/README.md b/learn/golang/README.md
index 9320faa..ed7b4b3 100644
--- a/learn/golang/README.md
+++ b/learn/golang/README.md
@@ -313,3 +313,12 @@ of reflectively generating types in memory based on given interface definitions.
* [go data structure: interfaces](https://research.swtch.com/interfaces)
* [laws of reflection](https://go.dev/blog/laws-of-reflection)
+
+## Modules
+
+> A module path should describe both what the module does and where to find it.
+> Typically, a module path consists of a repository root path, a directory
+> within the repository (usually empty), and a major version suffix (only for
+> major version 2 or higher).
+
+* [Go Modules Reference](https://go.dev/ref/mod)