init commit.
This commit is contained in:
16
util_err.go
Normal file
16
util_err.go
Normal file
@@ -0,0 +1,16 @@
|
||||
package main
|
||||
|
||||
import "fmt"
|
||||
|
||||
func remindErr(err error) {
|
||||
if err != nil {
|
||||
fmt.Print("Error: ")
|
||||
fmt.Println(err)
|
||||
}
|
||||
}
|
||||
|
||||
func PanicErr(err error) {
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user