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

Function takeFirstIP

coderd/database/dbgen/dbgen.go:2113–2117  ·  view source on GitHub ↗
(values ...net.IPNet)

Source from the content-addressed store, hash-verified

2111}
2112
2113func takeFirstIP(values ...net.IPNet) net.IPNet {
2114 return takeFirstF(values, func(v net.IPNet) bool {
2115 return len(v.IP) != 0 && len(v.Mask) != 0
2116 })
2117}
2118
2119// takeFirstSlice implements takeFirst for []any.
2120// []any is not a comparable type.

Callers 1

AuditLogFunction · 0.85

Calls 1

takeFirstFFunction · 0.70

Tested by

no test coverage detected