Add flowutils
All checks were successful
CI / release-test (push) Successful in 16s

This commit is contained in:
wispem-wantex 2025-08-23 20:24:34 -07:00
parent 87f5471b76
commit c402c775a3

View File

@ -0,0 +1,12 @@
package flowutils
func PanicIf(err error) {
if err != nil {
panic(err)
}
}
func Must[T any](val T, err error) T {
PanicIf(err)
return val
}