This repository was archived by the owner on Dec 1, 2021. It is now read-only.

Description
First returns the first non-nil error, otherwise nil. Usefull when a function have to manage multiple independant errors.
reply, criticalErr := request() // very important
logErr := logReply(reply) // not important
writeErr := writeReply(reply) // not that important
return errors.First(criticalErr, writeErr, logErr)
I am willing to submit a PR.