Code that handles an error looks like this:
if err! = nil { if fileErr,ok := err.(MissingFileError); ok { createFile(fileErr.FileName()) } else { return fmt.Errorf(...) } }
if err!=nil { return fmt.Errorf(...) }
Code that handles an error looks like this:
While code that does NOT handle an error looks like this: