1. in normal code is better to always do if err != nil so that the ifs only contain error code (this is ~coding policy) 2. in tests we want to ensure we narrow down the error to the real error that happened, to have greater confidence Written while working on https://github.com/ooni/probe/issues/1803#issuecomment-957323297
Directory github.com/ooni/probe-cli/internal
This directory contains private Go packages.
As a reminder, you can always check the Go documentation of a package by using
go doc -all ./internal/$package
where $package
is the name of the package.
Some notable packages: