Functions and receivers func ( r receiver)

May I point you back to this advice?

I fear that for you Go and this forum are not good choices for starting to learn programming.

A completely different approach could be Scheme and the very good and thorough book How to Design Programs (available online). Please take a look, not to short, at this book. Spend some hours or days trying to understand what it teaches. Perhaps this is an approach that works for you.