(raw any)
| 194 | } |
| 195 | |
| 196 | func stringSliceFromAny(raw any) []string { |
| 197 | switch values := raw.(type) { |
| 198 | case []string: |
| 199 | return values |
| 200 | case []any: |
| 201 | out := make([]string, 0, len(values)) |
| 202 | for _, value := range values { |
| 203 | if s, ok := value.(string); ok { |
| 204 | out = append(out, s) |
| 205 | } |
| 206 | } |
| 207 | return out |
| 208 | default: |
| 209 | return nil |
| 210 | } |
| 211 | } |
| 212 | |
| 213 | func sortStrings(values []string) { |
| 214 | for i := 1; i < len(values); i++ { |
no outgoing calls
no test coverage detected