pgterminate/base/utils.go

13 lines
157 B
Go
Raw Normal View History

2018-06-10 08:44:53 +02:00
package base
import (
"log"
)
// Panic prints a non-nil error and terminates the program
func Panic(err error) {
if err != nil {
log.Fatalln(err)
}
}