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

Method Has

options/options.go:181–184  ·  view source on GitHub ↗

Has checks if an option key exists.

(key string)

Source from the content-addressed store, hash-verified

179
180// Has checks if an option key exists.
181func (o *Options) Has(key string) bool {
182 _, ok := o.m[key]
183 return ok
184}
185
186// GetInt retrieves an int value from the options.
187// If the key does not exist, GetInt returns the provided default value.

Callers 7

TestPropagateMethod · 0.45
TestCopyValueMethod · 0.45
ShouldFlattenMethod · 0.45
TrimEnabledMethod · 0.45
TrimSmartMethod · 0.45

Calls

no outgoing calls

Tested by 4

TestPropagateMethod · 0.36
TestCopyValueMethod · 0.36