title: How to unit test Go errors
body: <p>When you are unit testing functions that have an <code>error</code> return type, I was wondering how to properly unit test for this error. Are you supposed to just check if the error is nil or not nil? Or are you supposed to verify the error string matches an expected string as well?</p>