#Channel

3 articles

Usage Channel Select Range Timeout

Usage Channel Select Range Timeout

The existence of channels really helps us to manage the goroutines that are running in our program. There are times when we also need to manage many goroutines and many channels are needed. So, this is where select comes in handy. select allows us to control data communication through channels. It is used in the same way as the switch selection condition.

Channel Introduction to Golang

Channel Introduction to Golang

A channel is a link from one goroutine to another and this channel is synchronous because of blocking data processes. Channels can be defined as variables with the keyword chan. This variable has the task of sending and receiving data.

How to implement queue (queue) in Go Language

How to implement queue (queue) in Go Language

Basic Definition

Queue or often we know is a queue data structure where the data we enter will be delivered, in other words the first data will come out first. Usually we often know that Istra FIFO (First in First Out).