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

Function New

options/options.go:27–31  ·  view source on GitHub ↗

New creates a new Options map

()

Source from the content-addressed store, hash-verified

25
26// New creates a new Options map
27func New() *Options {
28 return &Options{
29 m: make(map[string]any),
30 }
31}
32
33// Main returns the main Options if this is a child Options.
34// If this is the main Options, it returns itself.

Callers 15

TestGetMethod · 0.92
TestAppendToSliceMethod · 0.92
TestSliceContainsMethod · 0.92
TestPropagateMethod · 0.92
TestCopyValueMethod · 0.92
TestGetIntMethod · 0.92
TestGetFloatMethod · 0.92
testOptionsFunction · 0.92
validatePresetsMethod · 0.92

Calls

no outgoing calls

Tested by 15

TestGetMethod · 0.74
TestAppendToSliceMethod · 0.74
TestSliceContainsMethod · 0.74
TestPropagateMethod · 0.74
TestCopyValueMethod · 0.74
TestGetIntMethod · 0.74
TestGetFloatMethod · 0.74
testOptionsFunction · 0.74