Immutable Go Object
golang concurrent oop
Every Go programmer knows about the receiver in go, which be declared as:
type X struct {} func (receiver X) doThing() {...} We have two types of receiver in Golang, which is Value receiver and Pointer receiver. Basically, the receiver in Golang could be map to self in other programming languages and the function which uses the receiver will be pointed from struct type of the receiver.
So, what does this means, anyway?
Read more...