CheckfNoLog exits on error without any message (to avoid duplicate error messages).
(err error)
| 50 | |
| 51 | // CheckfNoLog exits on error without any message (to avoid duplicate error messages). |
| 52 | func CheckfNoLog(err error) { |
| 53 | if err != nil { |
| 54 | os.Exit(1) |
| 55 | } |
| 56 | } |
| 57 | |
| 58 | // Check2 acts as convenience wrapper around Check, using the 2nd argument as error. |
| 59 | func Check2(_ interface{}, err error) { |