Using panic and recover for error handling | Smart Go