(r *kite.Request)
| 608 | } |
| 609 | |
| 610 | func Square(r *kite.Request) (interface{}, error) { |
| 611 | a, err := r.Args.One().Float64() |
| 612 | if err != nil { |
| 613 | return nil, err |
| 614 | } |
| 615 | |
| 616 | result := a * a |
| 617 | return result, nil |
| 618 | } |
| 619 | |
| 620 | func TestGetQueryKey(t *testing.T) { |
| 621 | // This query is valid because there are no gaps between query fields. |