Did I break a taboo by doing this?

  • dbx12@programming.dev
    ·
    1 year ago

    I too consider that if err != nil a bit complicated to type. Most times, I wrap it away in a function like your Check0. I know that the major "framework" for command line applications (cobra) has a similar logic with its checkError function.