September 2017
Intermediate to advanced
466 pages
9h 33m
English
Unlike C, Go allows you to name the return values of a Go function. Additionally, when such a function has a return statement without any arguments, the function automatically returns the current value of each named return value. Note that such functions return their values in the order they were declared in the definition of the function.
My personal advice is this: name the return values of your functions unless there is a very good reason not to do so.
Read now
Unlock full access