bouncer/internal/command/client/flag/util.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
}