mirror of
https://github.com/wahyd4/forego.git
synced 2026-08-09 05:07:05 +10:00
14 lines
141 B
Go
14 lines
141 B
Go
package main
|
|
|
|
import (
|
|
"fmt"
|
|
"os"
|
|
)
|
|
|
|
func handleError(err error) {
|
|
if err != nil {
|
|
fmt.Println("ERROR:", err)
|
|
os.Exit(1)
|
|
}
|
|
}
|