9 lines
94 B
Go
9 lines
94 B
Go
package util
|
|
|
|
func MustOk[T any](v T, ok bool) T {
|
|
if !ok {
|
|
panic("not ok")
|
|
}
|
|
return v
|
|
}
|