Type defined in Golang program can have methods associated with it. Let’s see an example:
Suppose that Go program starts two goroutines:
package main
Introduction to `go tool vet -copylocks`
It’s common to see range clause with array, slice, string or map as an expression’s type:
This story explains remaining content from language specification touching methods. It’s strongly advised to read 1st…
The most intuitive order relation of send and receiving operations has been introduced during the first part:
Sending to a channel happens before receiving sent…
Certain operations using channels can block the whole goroutine forever. Let’s see a couple of maybe less…