import.name/pan (go): Package pan (short for panic) can be used to implement internal error propagation via panic and recover.  A benefit over naive panic/recover usage is that runtime errors and other unrelated panics are disregarded.  The check, must and mustcheck subpackages are designed to be used via dot imports (if that's something you prefer).  Example 1  Example 2
Keywords: error-handling|go|panic|recover