Go R1 Day 31
progress
- Learned a bit about idiomatic patterns wtih error handling.
- Learned about inline block intiailization of variables using
if err := method(); err != nil {...}
approach. - Considered a bit more idiomatic patterns when I noticed excessibe nested if blocks.
|
|
This would probably be more in alignment with Go standards by writing as:
|
|
This reduces the noise and keeps things pretty flat.
Webmentions
(No webmentions yet.)