Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Really interesting) I've never seen that we can just return w/out specifying the variable to return
Have you tested any of your claims? https://go.dev/play/p/596Wj16Phzj
How?
The newWord variable isn't needed.
The explicit cast also isn't needed, and it is implicit from the defined return type.
The contents of the string is irrelevant.
This comment is hidden because it contains spoiler information about the solution
I did that in my solution
to make it even shorter you could replace
sum = sum + num
with
sum += num
this shows a proper understanding of strings and runes in go