mleku on Nostr: yeah, i'm now currently being reminded of why the general idiom of APIs in #golang ...
yeah, i'm now currently being reminded of why the general idiom of APIs in #golang every function has a final return parameter of `error` type
in this case, i add a nil check and skip the item and log an error... there was three other cases where errors were not being handled
- first rule of #golang #fightclub - you do not fail to handle the error case first
- second rule of #golang #fightclub - you do not fail to handle the error case first
in this case, i add a nil check and skip the item and log an error... there was three other cases where errors were not being handled
- first rule of #golang #fightclub - you do not fail to handle the error case first
- second rule of #golang #fightclub - you do not fail to handle the error case first