getParameters returns a map of strings intended to be used simple string substitution
()
| 41 | |
| 42 | // getParameters returns a map of strings intended to be used simple string substitution |
| 43 | func (s *wfScope) getParameters() common.Parameters { |
| 44 | params := make(common.Parameters) |
| 45 | for key, val := range s.scope { |
| 46 | valStr, ok := val.(string) |
| 47 | if ok { |
| 48 | params[key] = valStr |
| 49 | } |
| 50 | } |
| 51 | return params |
| 52 | } |
| 53 | |
| 54 | func (s *wfScope) addParamToScope(key, val string) { |
| 55 | s.scope[key] = val |
no outgoing calls
no test coverage detected