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

Method DeleteFromDescendants

options/options.go:163–171  ·  view source on GitHub ↗

DeleteFromDescendants removes an option by its key from the Options descendants if any.

(key string)

Source from the content-addressed store, hash-verified

161
162// DeleteFromDescendants removes an option by its key from the Options descendants if any.
163func (o *Options) DeleteFromDescendants(key string) {
164 if o.child == nil {
165 return
166 }
167
168 for c := range o.Descendants() {
169 delete(c.m, key)
170 }
171}
172
173// CopyValue copies a value from one option key to another.
174func (o *Options) CopyValue(fromKey, toKey string) {

Callers 1

Calls 1

DescendantsMethod · 0.95

Tested by 1