Add content to go nodes (#2273)

* Updated content in various nodes in NodeJS  -Why nodejs, Installing NodeJS , CommonJS vs ESM , Global keyword,npm workspaces , creating packages , __dirname , __filename

Updated various sub groups with information in NODEJS

* Update content/roadmaps/107-nodejs/content/100-nodejs-introduction/101-why-nodejs.md

* Update content/roadmaps/107-nodejs/content/100-nodejs-introduction/101-why-nodejs.md

* Update content/roadmaps/107-nodejs/content/100-nodejs-introduction/104-running-nodejs-code.md

* Update content/roadmaps/107-nodejs/content/100-nodejs-introduction/101-why-nodejs.md

* Update content/roadmaps/107-nodejs/content/101-nodejs-modules/100-commonjs-vs-esm.md

* Update content/roadmaps/107-nodejs/content/101-nodejs-modules/102-global-keyword.md

* Update content/roadmaps/107-nodejs/content/100-nodejs-introduction/101-why-nodejs.md

* Update content/roadmaps/107-nodejs/content/100-nodejs-introduction/101-why-nodejs.md

* Update 101-why-nodejs.md

* Update content/roadmaps/107-nodejs/content/102-nodejs-npm/105-npm-workspaces.md

* Update content/roadmaps/107-nodejs/content/102-nodejs-npm/106-creating-packages.md

* Update content/roadmaps/107-nodejs/content/105-nodejs-working-with-files/107-dirname.md

* Update content/roadmaps/107-nodejs/content/105-nodejs-working-with-files/108-filename.md

* Updated content in various nodes of GOLANG

Updated content in the nodes
go modules
interfaces
context
goroutines
channels
buffer
select

Co-authored-by: Kamran Ahmed <kamranahmed.se@gmail.com>
pull/2259/head^2
CodeWAdi 2 years ago committed by GitHub
parent 408ab9752f
commit e975c7d016
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      content/roadmaps/107-nodejs/content/101-nodejs-modules/102-global-keyword.md
  2. 3
      content/roadmaps/109-golang/content/101-go-advanced/100-go-modules.md
  3. 1
      content/roadmaps/109-golang/content/101-go-advanced/103-interfaces.md
  4. 3
      content/roadmaps/109-golang/content/101-go-advanced/104-context.md
  5. 4
      content/roadmaps/109-golang/content/101-go-advanced/105-goroutines.md
  6. 9
      content/roadmaps/109-golang/content/101-go-advanced/106-channels.md
  7. 7
      content/roadmaps/109-golang/content/101-go-advanced/107-buffer.md
  8. 10
      content/roadmaps/109-golang/content/101-go-advanced/108-select.md

@ -1,8 +1,8 @@
# global keyword
The global object gives access to some useful functions that can be used directly in our code. The global object, in contrast to the global object in a browser, is not the Window object. It is just an object called 'Global'.
In browsers, the top-level scope is the global scope. This means that within the browser var something will define a new global variable. In Node.js this is different. The top-level scope is not the global scope; `var something` inside a Node.js module will be local to that module.
<ResourceGroupTitle>Free Content</ResourceGroupTitle>
<BadgeLink colorScheme='blue' badgeText='Read' href='https://nodejs.org/api/globals.html'>Official Documentation</BadgeLink>
<BadgeLink colorScheme='yellow' badgeText='Read' href='https://nodejs.org/api/globals.html#global'>global Keyword in Node.js</BadgeLink>
<BadgeLink badgeText='Watch' href='https://www.youtube.com/watch?v=jn8PZNBmKm0'>What is Global Object?</BadgeLink>
<BadgeLink badgeText='Watch' href='https://www.youtube.com/watch?v=PY-AycMkEAg'>Global Object in Node</BadgeLink>

@ -5,8 +5,9 @@ Go modules are a group of related packages that are versioned and distributed to
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 colorScheme='blue' badgeText='Official Website' href='https://go.dev/blog/using-go-modules'>Go Modules</BadgeLink>
<BadgeLink badgeText='Watch' href='https://www.youtube.com/watch?v=9cV1KESTJRc'>Go Modules</BadgeLink>
<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>

@ -8,3 +8,4 @@ An interface in Go, is a type that defines a set of methods. If we have a type (
<BadgeLink badgeText='Read' href='https://gobyexample.com/interfaces'>Go by Example: Interfaces</BadgeLink>
<BadgeLink badgeText='Watch' href='https://www.youtube.com/watch?v=lh_Uv2imp14'>Golang Tutorial #22 - Interfaces (by Tech With Tim on YouTube)</BadgeLink>
<BadgeLink badgeText='Watch' href='https://www.youtube.com/watch?v=KB3ysH8cupY'>Learn Go Interfaces</BadgeLink>
<BadgeLink badgeText='Watch' href='https://www.youtube.com/watch?v=qJKQZKGZgf0'>Understanding Go Interfaces</BadgeLink>

@ -3,6 +3,9 @@
The `context` package provides a standard way to solve the problem of managing state during a request. The package satisfies the need for request scoped data and provides a standardized way to handle: Deadlines, Cancellation Signals, etc.
<ResourceGroupTitle>Free Content</ResourceGroupTitle>
<BadgeLink colorScheme='blue' badgeText='Official Website' href='https://pkg.go.dev/context'>Go Context</BadgeLink>
<BadgeLink badgeText='Read' href='https://gobyexample.com/context'>Go by Example: Context</BadgeLink>
<BadgeLink badgeText='Watch' href='https://www.youtube.com/watch?v=LSzR0VEraWw'>Context in Go</BadgeLink>
<BadgeLink badgeText='Watch' href='https://youtu.be/h2RdcrMLQAo'>Understanding Contexts in Go</BadgeLink>
<BadgeLink colorScheme='yellow' badgeText='Read' href='https://www.digitalocean.com/community/tutorials/how-to-use-contexts-in-go'>DigitalOcean: How to Use Contests in Go</BadgeLink>
<BadgeLink colorScheme='yellow' badgeText='Read' href='https://gobyexample.com/context'>Go by Example: Context</BadgeLink>

@ -6,6 +6,8 @@ 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' herf='https://www.geeksforgeeks.org/goroutines-concurrency-in-golang'>Goroutines in Golang</BadgeLink>
<BadgeLink badgeText='Watch' href='https://www.youtube.com/watch?v=LvgVSSpwND8'>GoRoutines</BadgeLink>
<BadgeLink badgeText='Watch' href='https://www.youtube.com/watch?v=V-0ifUKCkBI'>Understanding Concurrency</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,10 +1,13 @@
# 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: `<-`.
Channels are the pipes that connect concurrent goroutines. You can send values into channels from one goroutine and receive those values into another goroutine.
Channels are a typed conduit through which you can send and receive values with the channel operator, `<-` .
<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>
<BadgeLink badgeText='Read' herf='https://golangbot.com/channels/'>Channels in Golang</BadgeLink>
<BadgeLink badgeText='Watch' href='https://www.youtube.com/watch?v=e4bu9g-bYtg'>Channels</BadgeLink>
<BadgeLink badgeText='Read' href='https://www.geeksforgeeks.org/channel-in-golang/'>GeeksForGeeks: Channel in Golang</BadgeLink>
<BadgeLink badgeText='Watch' href='https://youtu.be/LgCmPHqAuf4'>Golang Channel Basics You must Know!</BadgeLink>

@ -1 +1,8 @@
# Buffer
The `buffer` belongs to the byte package of the Go language, and we can use these package to manipulate the byte of the string.
<ResourceGroupTitle>Free Content</ResourceGroupTitle>
<BadgeLink colorScheme='blue' badgeText='Official Website' href='https://pkg.go.dev/bytes#example-Buffer'>Buffer Examples</BadgeLink>
<BadgeLink badgeText='Read' herf='https://www.educba.com/golang-buffer/'>Buffer</BadgeLink>
<BadgeLink badgeText='Watch' href='https://www.youtube.com/watch?v=NoDRq6Twkts'>Buffers in Golang</BadgeLink>

@ -1,7 +1,11 @@
# Select
The `select` statement is similar to a `case` statement, but is primarily used for handling reading from multiple channels.
The `select` statement lets a goroutine wait on multiple communication operations.
A `select` blocks until one of its cases can run, then it executes that case. It chooses one at random if multiple are ready. The `select` statement is just like switch statement, but in the select statement, case statement refers to communication, i.e. sent or receive operation on the channel.
<ResourceGroupTitle>Free Content</ResourceGroupTitle>
<BadgeLink colorScheme='yellow' badgeText='Read' href='https://gobyexample.com/select'>Go by Example: Select</BadgeLink>
<BadgeLink colorScheme='yellow' badgeText='Read' href='https://golangdocs.com/select-statement-in-golang'>Select Statement in Go</BadgeLink>
<BadgeLink colorScheme='blue' badgeText='Official Website' href='https://go.dev/tour/concurrency/5'>Select</BadgeLink>
<BadgeLink badgeText='Read' href='https://gobyexample.com/select'>Go by Example: Select</BadgeLink>
<BadgeLink badgeText='Read' herf='https://www.geeksforgeeks.org/select-statement-in-go-language/'>Select in Golang</BadgeLink>
<BadgeLink badgeText='Watch' href='https://www.youtube.com/watch?v=1c7ttSJDMAI'>Select Statement</BadgeLink>

Loading…
Cancel
Save