12 lines
141 B
Go
12 lines
141 B
Go
package flag
|
|
|
|
func AsAnySlice[T any](src []T) []any {
|
|
dst := make([]any, len(src))
|
|
|
|
for i, s := range src {
|
|
dst[i] = s
|
|
}
|
|
|
|
return dst
|
|
}
|