checkError if error is not nil and exiting if error found
(err error)
| 153 | |
| 154 | // checkError if error is not nil and exiting if error found |
| 155 | func checkError(err error) { |
| 156 | if err != nil { |
| 157 | log.Fatal(err) |
| 158 | } |
| 159 | } |
| 160 | |
| 161 | // Starting point of the program |
| 162 | func main() { |