package cfg import ( "errors" ) var ( errTest = errors.New("Busted") ) func ExampleDisplayError() { displayError(errTest) // Output: Error: Busted }