From e278f5adecbfa601df8d36a9ddbead92516e2fcd Mon Sep 17 00:00:00 2001 From: Hamees Sayed <98336593+hamees-sayed@users.noreply.github.com> Date: Wed, 5 Oct 2022 05:18:25 +0530 Subject: [PATCH] added resource in go node (modules, goroutines, channels) (#1960) Co-authored-by: Kamran Ahmed --- .../content/101-go-advanced/100-go-modules.md | 7 ++++++- .../content/101-go-advanced/105-goroutines.md | 12 +++++++++++- .../content/101-go-advanced/106-channels.md | 11 ++++++++++- 3 files changed, 27 insertions(+), 3 deletions(-) diff --git a/content/roadmaps/109-golang/content/101-go-advanced/100-go-modules.md b/content/roadmaps/109-golang/content/101-go-advanced/100-go-modules.md index 8c2715d6b..b8cd59c7c 100644 --- a/content/roadmaps/109-golang/content/101-go-advanced/100-go-modules.md +++ b/content/roadmaps/109-golang/content/101-go-advanced/100-go-modules.md @@ -1,8 +1,13 @@ # Modules -Go code is grouped into packages, and packages are grouped into modules. Your module specifies dependencies needed to run your code, including the Go version and the set of other modules it requires. +Go modules are a group of related packages that are versioned and distributed together. They specify the requirements of our project, list all the required dependencies, and help us keep track of the specific versions of installed dependencies. + +Modules are identified by a module path that is declared in the first line of the go.mod file in our project. Free Content +DigitalOcean: How to use Go Modules +Using Go Modules +Go Modules Explained in 5 Minutes (by Golang Dojo on YouTube) How to create a module in Go How to use modules in Go How to modify existing projects to use Go modules diff --git a/content/roadmaps/109-golang/content/101-go-advanced/105-goroutines.md b/content/roadmaps/109-golang/content/101-go-advanced/105-goroutines.md index 33725778d..286eb1cfa 100644 --- a/content/roadmaps/109-golang/content/101-go-advanced/105-goroutines.md +++ b/content/roadmaps/109-golang/content/101-go-advanced/105-goroutines.md @@ -1 +1,11 @@ -# Goroutines \ No newline at end of file +# Goroutines + +Goroutines allow us to write concurrent programs in Go. Things like web servers handling thousands of requests or a website rendering new pages while also concurrently making network requests are a few example of concurrency. + +In Go, each of these concurrent tasks are called `Goroutines`. + +Free Content +Goroutines +GeeksForGeeks: Goroutines – Concurrency in Golang +Go by Example: Goroutines +Golang Goroutine Basics You MUST Learn! (by Golang Dojo on YouTube) \ No newline at end of file diff --git a/content/roadmaps/109-golang/content/101-go-advanced/106-channels.md b/content/roadmaps/109-golang/content/101-go-advanced/106-channels.md index bf27c3575..3423c322e 100644 --- a/content/roadmaps/109-golang/content/101-go-advanced/106-channels.md +++ b/content/roadmaps/109-golang/content/101-go-advanced/106-channels.md @@ -1 +1,10 @@ -# Channels \ No newline at end of file +# Channels + +Channels are a programming construct. The idea of channels in Go is to use them with your Goroutines as a pipeline in order to communicate between multiple Goroutines using the channel operator which looks like an arrow: `<-`. + + +Free Content +Channels +GeeksForGeeks: Channel in Golang +Go by Example: Channels +Golang Channel Basics You MUST Know! (by Golang Dojo on YouTube) \ No newline at end of file