MCPcopy Create free account
hub / github.com/imgproxy/imgproxy / Has

Method Has

xmlparser/attributes.go:101–104  ·  view source on GitHub ↗

Has returns true if the attribute with the given name exists.

(name Name)

Source from the content-addressed store, hash-verified

99
100// Has returns true if the attribute with the given name exists.
101func (a *Attributes) Has(name Name) bool {
102 _, exists := a.m[name]
103 return exists
104}
105
106// HasByString is like Has but accepts a string name.
107func (a *Attributes) HasByString(name string) bool {

Callers 1

HasByStringMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected