Golang and why it matters
James O'Toole

You have a race condition in your code. “rec” is potentially written to while it is being read.

Furthermore, a for{} loop would be better instead of endless recursive calls. Recursive calls will grow the stack endlessly.

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.