(value any)
| 264 | } |
| 265 | |
| 266 | func stringSetFromAny(value any) map[string]struct{} { |
| 267 | out := map[string]struct{}{} |
| 268 | switch typed := value.(type) { |
| 269 | case []string: |
| 270 | for _, item := range typed { |
| 271 | out[item] = struct{}{} |
| 272 | } |
| 273 | case []any: |
| 274 | for _, item := range typed { |
| 275 | if text, ok := item.(string); ok { |
| 276 | out[text] = struct{}{} |
| 277 | } |
| 278 | } |
| 279 | } |
| 280 | return out |
| 281 | } |
| 282 | |
| 283 | func copySchemaMap(in map[string]any) map[string]any { |
| 284 | out := make(map[string]any, len(in)+1) |
no outgoing calls
no test coverage detected