(v any)
| 445 | } |
| 446 | |
| 447 | func jsonKind(v any) string { |
| 448 | switch v.(type) { |
| 449 | case string: |
| 450 | return "string" |
| 451 | case json.Number: |
| 452 | return "number" |
| 453 | case bool: |
| 454 | return "boolean" |
| 455 | default: |
| 456 | return fmt.Sprintf("%T", v) |
| 457 | } |
| 458 | } |
| 459 | |
| 460 | func describeResponse(name string, list []response, pos int) string { |
| 461 | r := list[pos] |