MCPcopy
hub / github.com/TomWright/dasel / WithFuncs

Function WithFuncs

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

WithFuncs sets the functions that can be used in the selector.

(fc FuncCollection)

Source from the content-addressed store, hash-verified

29
30// WithFuncs sets the functions that can be used in the selector.
31func WithFuncs(fc FuncCollection) ExecuteOptionFn {
32 return func(o *Options) {
33 o.Funcs = fc
34 }
35}
36
37// WithVariable sets a variable for use in the selector.
38func WithVariable(key string, val *model.Value) ExecuteOptionFn {

Callers 1

TestOptionsFunction · 0.92

Calls

no outgoing calls

Tested by 1

TestOptionsFunction · 0.74