yess
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
package error_utils
|
||||
|
||||
func Unwrap[T any](v T, err error) T {
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
return v
|
||||
}
|
||||
Reference in New Issue
Block a user