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

Method GetTime

options/options.go:290–292  ·  view source on GitHub ↗

GetTime retrieves a [time.Time] value. If the key doesn't exist, it returns the zero time. If the value exists but is of a different type, it panics.

(key string)

Source from the content-addressed store, hash-verified

288// If the key doesn't exist, it returns the zero time.
289// If the value exists but is of a different type, it panics.
290func (o *Options) GetTime(key string) time.Time {
291 return Get(o, key, time.Time{})
292}
293
294// Map returns a copy of the Options as a map[string]any
295// If the Options has a child, it combines the main and child maps,

Callers 4

TestParseExpiresMethod · 0.80
executeMethod · 0.80
respondWithImageMethod · 0.80

Calls 1

GetFunction · 0.85

Tested by 1

TestParseExpiresMethod · 0.64