What is Nostr?
mleku
npub1fjq…leku
2024-05-03 15:10:52
in reply to nevent1q…9mq9

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
Author Public Key
npub1fjqqy4a93z5zsjwsfxqhc2764kvykfdyttvldkkkdera8dr78vhsmmleku