(depth int)
| 315 | } |
| 316 | |
| 317 | func arrayNode(depth int) string { |
| 318 | var items []string |
| 319 | for i := 0; i < oneOf(list[int]{ |
| 320 | {1, 100}, |
| 321 | {2, 50}, |
| 322 | {3, 25}, |
| 323 | }); i++ { |
| 324 | items = append(items, node(depth-1)) |
| 325 | } |
| 326 | return fmt.Sprintf("[%v]", strings.Join(items, ", ")) |
| 327 | } |
| 328 | |
| 329 | func mapNode(depth int) string { |
| 330 | var items []string |