debanator/util.go

17 lines
190 B
Go
Raw Normal View History

2023-05-01 21:28:28 +01:00
package debanator
import (
log "github.com/sirupsen/logrus"
)
func Md(err error) {
if err != nil {
log.Fatal(err)
}
}
func Unwrap[T any](val T, err error) T {
Md(err)
return val
}