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

Method CopyValue

options/options.go:174–178  ·  view source on GitHub ↗

CopyValue copies a value from one option key to another.

(fromKey, toKey string)

Source from the content-addressed store, hash-verified

172
173// CopyValue copies a value from one option key to another.
174func (o *Options) CopyValue(fromKey, toKey string) {
175 if v, ok := o.m[fromKey]; ok {
176 o.m[toKey] = v
177 }
178}
179
180// Has checks if an option key exists.
181func (o *Options) Has(key string) bool {

Callers 3

TestCopyValueMethod · 0.80
applyZoomOptionMethod · 0.80
applyPaddingOptionMethod · 0.80

Calls

no outgoing calls

Tested by 1

TestCopyValueMethod · 0.64