January 2018
Intermediate to advanced
340 pages
8h 6m
English
There is no operator overloading in Go, so you can't add to structs together with the + sign, but you can easily define an Add() function on the type and then call something like dataSet1.Add(dataSet2). By omitting operator overloading from the language, we can confidently use the operators without worrying about unexpected behavior due to operator behavior being overloaded somewhere else in code without realizing it.
Read now
Unlock full access