Skip to main content

Channels

 Channels are the one which can able to communicate one goroutine with another.

Comments

Popular posts from this blog

Go Routines

Before Going to understand Go Routines, Need to understand about multithread programming.  Every Go Program will execute with main thread call main function.  Go Routines will help to create multithreading in Golang, Write go in front of any function will act as goroutine.  Example:  Normal Function:  func temp() {          print ("Hello World")     } func main() {     temp()  } Go Routine Example func main() {     go temp()  } GoRoutine will create a new thread along with main thread.