package flowutils func PanicIf(err error) { if err != nil { panic(err) } } func Must[T any](val T, err error) T { PanicIf(err) return val }