MCPcopy Create free account
hub / github.com/CrunchyData/postgres-operator / Value

Function Value

internal/testing/require/errors.go:39–44  ·  view source on GitHub ↗

Value returns v or panics when err is not nil.

(v T, err error)

Source from the content-addressed store, hash-verified

37
38// Value returns v or panics when err is not nil.
39func Value[T any](v T, err error) T {
40 if err != nil {
41 panic(err)
42 }
43 return v
44}

Calls

no outgoing calls