I noticed that I am not consistent when writing golang regarding the following question: Is it better to manipulate a struct in its methods via the struct itself directly or by using return? Since this question sounds stupid, here's an example:
Manipulate a struct directly
http://play.golang.org/p/7G5D8Pm5wv
Via return
http://play.golang.org/p/L9Z_t7pA8b
Please explain why one attempt is better than the other. An if both somehow wrong, please give an example that would be ok.
Thanks in advance!