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

Method GetString

options/options.go:276–278  ·  view source on GitHub ↗

GetString retrieves a string 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 string)

Source from the content-addressed store, hash-verified

274// If the key doesn't exist, it returns the provided default value.
275// If the value exists but is of a different type, it panics.
276func (o *Options) GetString(key string, def string) string {
277 return Get(o, key, def)
278}
279
280// GetBool retrieves a bool value.
281// If the key doesn't exist, it returns the provided default value.

Callers 2

setContentDispositionMethod · 0.80
respondWithImageMethod · 0.80

Calls 1

GetFunction · 0.85

Tested by

no test coverage detected