Load the variable name
(order int, result *parser.Result)
| 406 | |
| 407 | // Load the variable name |
| 408 | func (l *loader) loadActionResultVariable(order int, result *parser.Result) string { |
| 409 | name := result.Name() |
| 410 | if name != "" { |
| 411 | return name + "Out" |
| 412 | } |
| 413 | // Handle outputs with no variable |
| 414 | return "out" + strconv.Itoa(order) |
| 415 | } |
| 416 | |
| 417 | // Load the inner fields of the result type, if it's a struct |
| 418 | func (l *loader) loadActionResultFields(result *parser.Result, def parser.Declaration) (fields []*ActionResultField) { |