MCPcopy Create free account
hub / github.com/egonelbre/exp / must

Function must

coverage_example/parse/main.go:72–77  ·  view source on GitHub ↗
(v T, err error)

Source from the content-addressed store, hash-verified

70}
71
72func must[T any](v T, err error) T {
73 if err != nil {
74 panic(err)
75 }
76 return v
77}

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected