Continuing with our lockdown learning of Go language. Here’s a video where we discuss Buffered Channels in Golang package main import ( "fmt" "time" ) func main() { //A channel can buffer data //specify buffer size during creation ch := […]
Continuing with our lockdown learning of Go language. Here’s a video where we discuss Exchanging data using Channels in Golang package main import "fmt" func main() { channel := make(chan int) //Let’s square a number in a goroutine //Pass the […]
Continuing with our lockdown learning of Go language. Here’s a video where we discussChannels in Golang package main import "fmt" func main() { //Channels are pipelines used to communicate with goroutines //channel is used to pass and receive integer data […]
Continuing with our lockdown learning of Go language. Here’s a video where we Play more with WaitGroup in Golang package main import ( "fmt" "sync" ) func main() { wg := sync.WaitGroup{} //a structure fmt.Println(wg) wg.Add(1) //go doSomething(wg) //Passing a […]
Continuing with our lockdown learning of Go language. Here’s a video on WaitGroup in goroutines in Golang A goroutine may have to wait for another goroutine to complete. Using time.Sleep() is a very crude way to wait. Here’s where WaitGroup […]