Params sets query parameters on the last added call.
(params map[string]interface{})
| 75 | |
| 76 | // Params sets query parameters on the last added call. |
| 77 | func (d *DryRunAPI) Params(params map[string]interface{}) *DryRunAPI { |
| 78 | if n := len(d.calls); n > 0 { |
| 79 | d.calls[n-1].Params = params |
| 80 | } |
| 81 | return d |
| 82 | } |
| 83 | |
| 84 | // Desc sets a description on the last added call. |
| 85 | // If no calls exist yet, sets the top-level description. |
no outgoing calls