initial commit
This commit is contained in:
8
utils/panicOnError.go
Normal file
8
utils/panicOnError.go
Normal file
@@ -0,0 +1,8 @@
|
||||
package utils
|
||||
|
||||
// PanicOnError will panic if err goven is not nil
|
||||
func PanicOnError(err error) {
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user