golang error handling code example clarification