added resource in go node (modules, goroutines, channels) (#1960)
Co-authored-by: Kamran Ahmed <kamranahmed.se@gmail.com>pull/2138/head
parent
22ba125043
commit
e278f5adec
3 changed files with 27 additions and 3 deletions
@ -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. |
||||
|
||||
<ResourceGroupTitle>Free Content</ResourceGroupTitle> |
||||
<BadgeLink badgeText='Read' href='https://www.digitalocean.com/community/tutorials/how-to-use-go-modules'>DigitalOcean: How to use Go Modules</BadgeLink> |
||||
<BadgeLink badgeText='Read' href='https://go.dev/blog/using-go-modules'>Using Go Modules</BadgeLink> |
||||
<BadgeLink badgeText='Watch' href='https://youtu.be/7xSxIwWJ9R4'>Go Modules Explained in 5 Minutes (by Golang Dojo on YouTube)</BadgeLink> |
||||
<BadgeLink colorScheme='yellow' badgeText='Read' href='https://go.dev/doc/tutorial/create-module'>How to create a module in Go</BadgeLink> |
||||
<BadgeLink colorScheme='yellow' badgeText='Read' href='https://go.dev/blog/using-go-modules'>How to use modules in Go</BadgeLink> |
||||
<BadgeLink colorScheme='yellow' badgeText='Read' href='https://jfrog.com/blog/converting-projects-for-go-modules/'>How to modify existing projects to use Go modules</BadgeLink> |
||||
|
@ -1 +1,11 @@ |
||||
# 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`. |
||||
|
||||
<ResourceGroupTitle>Free Content</ResourceGroupTitle> |
||||
<BadgeLink colorScheme='blue' badgeText='Official Website' href='https://go.dev/tour/concurrency/1'>Goroutines</BadgeLink> |
||||
<BadgeLink badgeText='Read' href='https://www.geeksforgeeks.org/goroutines-concurrency-in-golang/#:~:text=A%20Goroutine%20is%20a%20function,is%20known%20as%20a%20Goroutines.'>GeeksForGeeks: Goroutines – Concurrency in Golang</BadgeLink> |
||||
<BadgeLink badgeText='Read' href='https://gobyexample.com/goroutines'>Go by Example: Goroutines</BadgeLink> |
||||
<BadgeLink badgeText='Watch' href='https://youtu.be/oHIbeTmmTaA'>Golang Goroutine Basics You MUST Learn! (by Golang Dojo on YouTube)</BadgeLink> |
@ -1 +1,10 @@ |
||||
# 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: `<-`. |
||||
|
||||
|
||||
<ResourceGroupTitle>Free Content</ResourceGroupTitle> |
||||
<BadgeLink colorScheme='blue' badgeText='Official Website' href='https://go.dev/tour/concurrency/2'>Channels</BadgeLink> |
||||
<BadgeLink badgeText='Read' href='https://www.geeksforgeeks.org/channel-in-golang/'>GeeksForGeeks: Channel in Golang</BadgeLink> |
||||
<BadgeLink badgeText='Read' href='https://gobyexample.com/channels'>Go by Example: Channels</BadgeLink> |
||||
<BadgeLink badgeText='Watch' href='https://youtu.be/LgCmPHqAuf4'>Golang Channel Basics You MUST Know! (by Golang Dojo on YouTube)</BadgeLink> |
Loading…
Reference in new issue