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

Method GetBool

options/options.go:283–285  ·  view source on GitHub ↗

GetBool retrieves a bool value. If the key doesn't exist, it returns the provided default value. If the value exists but is of a different type, it panics.

(key string, def bool)

Source from the content-addressed store, hash-verified

281// If the key doesn't exist, it returns the provided default value.
282// If the value exists but is of a different type, it panics.
283func (o *Options) GetBool(key string, def bool) bool {
284 return Get(o, key, def)
285}
286
287// GetTime retrieves a [time.Time] value.
288// If the key doesn't exist, it returns the zero time.

Calls 1

GetFunction · 0.85