bouncer/internal/command/api/flag/util.go

12 lines
141 B
Go
Raw Normal View History

2023-04-24 20:52:12 +02:00
package flag
func AsAnySlice[T any](src []T) []any {
dst := make([]any, len(src))
for i, s := range src {
dst[i] = s
}
return dst
}