(value any)
| 380 | } |
| 381 | |
| 382 | func parseStringArrayStrict(value any) ([]string, bool) { |
| 383 | arr, ok := value.([]any) |
| 384 | if !ok { |
| 385 | return nil, false |
| 386 | } |
| 387 | result := make([]string, 0, len(arr)) |
| 388 | for _, item := range arr { |
| 389 | s, ok := item.(string) |
| 390 | if !ok { |
| 391 | return nil, false |
| 392 | } |
| 393 | result = append(result, s) |
| 394 | } |
| 395 | return result, true |
| 396 | } |
| 397 | |
| 398 | func parseStringArrayLossy(value any) []string { |
| 399 | arr, ok := value.([]any) |
no outgoing calls
no test coverage detected