|
3 | 3 | Cases for lists of `int`, `string`, and `object`. |
4 | 4 |
|
5 | 5 | ## Parameters |
6 | | - |
7 | 6 | ### Integer lists |
8 | 7 |
|
9 | | -| Name | Description | Type | Value | |
10 | | -| ------------------------- | ------------------------------------------------- | -------- | ------ | |
11 | | -| `intList` | A required list of integers, empty. | `[]int` | `null` | |
12 | | -| `intListSingle` | A list of integers with one value. | `[]int` | `null` | |
13 | | -| `intListMultiple` | A list of integers with one value. | `[]int` | `null` | |
14 | | -| `intListNullable` | A nullable list of integers, empty. | `[]*int` | `null` | |
15 | | -| `intListNullableSingle` | A nullable list of integers with one value. | `[]*int` | `null` | |
16 | | -| `intListNullableMultiple` | A nullable list of integers with multiple values. | `[]*int` | `null` | |
| 8 | +| Name | Description | Type | Value | |
| 9 | +| ------------------------- | ------------------------------------------------- | -------- | ------------ | |
| 10 | +| `intList` | A required list of integers, empty. | `[]int` | `[]` | |
| 11 | +| `intListSingle` | A list of integers with one value. | `[]int` | `[80]` | |
| 12 | +| `intListMultiple` | A list of integers with one value. | `[]int` | `[80, 8080]` | |
| 13 | +| `intListNullable` | A nullable list of integers, empty. | `[]*int` | `[]` | |
| 14 | +| `intListNullableSingle` | A nullable list of integers with one value. | `[]*int` | `[80]` | |
| 15 | +| `intListNullableMultiple` | A nullable list of integers with multiple values. | `[]*int` | `[80, 8080]` | |
| 16 | + |
17 | 17 |
|
18 | 18 | ### String lists |
19 | 19 |
|
20 | | -| Name | Description | Type | Value | |
21 | | -| ---------------------------- | ------------------------------------------------ | ----------- | ------ | |
22 | | -| `stringList` | A required list of strings, empty. | `[]string` | `null` | |
23 | | -| `stringListSingle` | A required list of strings with one value. | `[]string` | `null` | |
24 | | -| `stringListMultiple` | A required list of strings with multiple values. | `[]string` | `null` | |
25 | | -| `stringListNullable` | A nullable list of strings, empty. | `[]*string` | `null` | |
26 | | -| `stringListNullableSingle` | A nullable list of strings with one value. | `[]*string` | `null` | |
27 | | -| `stringListNullableMultiple` | A nullable list of strings with multiple values. | `[]*string` | `null` | |
| 20 | +| Name | Description | Type | Value | |
| 21 | +| ---------------------------- | ------------------------------------------------ | ----------- | ---------------- | |
| 22 | +| `stringList` | A required list of strings, empty. | `[]string` | `[]` | |
| 23 | +| `stringListSingle` | A required list of strings with one value. | `[]string` | `[user1]` | |
| 24 | +| `stringListMultiple` | A required list of strings with multiple values. | `[]string` | `[user1, user2]` | |
| 25 | +| `stringListNullable` | A nullable list of strings, empty. | `[]*string` | `[]` | |
| 26 | +| `stringListNullableSingle` | A nullable list of strings with one value. | `[]*string` | `[user1]` | |
| 27 | +| `stringListNullableMultiple` | A nullable list of strings with multiple values. | `[]*string` | `[user1, user2]` | |
| 28 | + |
| 29 | + |
0 commit comments