OutputKeyHasIdentifier returns true if the key uses the identifier
()
| 155 | |
| 156 | // OutputKeyHasIdentifier returns true if the key uses the identifier |
| 157 | func (ff *FnForEach) OutputKeyHasIdentifier() bool { |
| 158 | dollar := "${" + ff.Identifier + "}" |
| 159 | amper := "&{" + ff.Identifier + "}" |
| 160 | if strings.Contains(ff.OutputKey, dollar) { |
| 161 | return true |
| 162 | } |
| 163 | if strings.Contains(ff.OutputKey, amper) { |
| 164 | return true |
| 165 | } |
| 166 | return false |
| 167 | } |
| 168 | |
| 169 | // ReplaceIdentifier replaces instance of the identifier in s for collection |
| 170 | // key k |
no outgoing calls