MCPcopy Index your code
hub / github.com/commitdev/zero / findParameter

Function findParameter

internal/module/module_test.go:167–174  ·  view source on GitHub ↗
(params []moduleconfig.Parameter, field string)

Source from the content-addressed store, hash-verified

165}
166
167func findParameter(params []moduleconfig.Parameter, field string) (moduleconfig.Parameter, error) {
168 for _, v := range params {
169 if v.Field == field {
170 return v, nil
171 }
172 }
173 return moduleconfig.Parameter{}, errors.New("parameter not found")
174}

Callers 1

TestParseModuleConfigFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected