(funcType *ast.FuncType)
| 573 | } |
| 574 | |
| 575 | func firstParamName(funcType *ast.FuncType) string { |
| 576 | if funcType == nil || funcType.Params == nil || len(funcType.Params.List) == 0 { |
| 577 | return "tx" |
| 578 | } |
| 579 | first := funcType.Params.List[0] |
| 580 | if len(first.Names) == 0 { |
| 581 | return "tx" |
| 582 | } |
| 583 | return first.Names[0].Name |
| 584 | } |
| 585 | |
| 586 | func exprString(expr ast.Expr) string { |
| 587 | if expr == nil { |