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

Function must

coderd/database/dbgen/dbgen.go:2106–2111  ·  view source on GitHub ↗
(v V, err error)

Source from the content-addressed store, hash-verified

2104}
2105
2106func must[V any](v V, err error) V {
2107 if err != nil {
2108 panic(err)
2109 }
2110 return v
2111}
2112
2113func takeFirstIP(values ...net.IPNet) net.IPNet {
2114 return takeFirstF(values, func(v net.IPNet) bool {

Callers 3

dbgen.goFile · 0.70
UserFunction · 0.70
ProvisionerJobFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected