MCPcopy
hub / github.com/caddyserver/caddy / Equal

Method Equal

modules/caddyhttp/celmatcher.go:337–342  ·  view source on GitHub ↗
(other ref.Val)

Source from the content-addressed store, hash-verified

335}
336
337func (pn celPkixName) Equal(other ref.Val) ref.Val {
338 if o, ok := other.Value().(string); ok {
339 return types.Bool(pn.Name.String() == o)
340 }
341 return types.ValOrErr(other, "%v is not comparable type", other)
342}
343func (celPkixName) Type() ref.Type { return pkixNameCELType }
344func (pn celPkixName) Value() any { return pn }
345

Calls 3

ValueMethod · 0.45
BoolMethod · 0.45
StringMethod · 0.45