MCPcopy Index your code
hub / github.com/coder/coder / must

Function must

coderd/database/dbfake/dbfake.go:873–878  ·  view source on GitHub ↗
(v V, err error)

Source from the content-addressed store, hash-verified

871}
872
873func must[V any](v V, err error) V {
874 if err != nil {
875 panic(err)
876 }
877 return v
878}
879
880// takeFirstF takes the first value that returns true
881func takeFirstF[Value any](values []Value, take func(v Value) bool) Value {

Callers 2

dbfake.goFile · 0.70
doInTXMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected