37718ded77
Reviewed-on: https://codeberg.org/woodpecker-plugins/docker-buildx/pulls/62 Reviewed-by: qwerty287 <qwerty287@noreply.codeberg.org>
10 lines
130 B
Go
10 lines
130 B
Go
package utils
|
|
|
|
func Map[T any](in []T, fn func(T) T) []T {
|
|
out := in
|
|
for i := range in {
|
|
out[i] = fn(out[i])
|
|
}
|
|
return out
|
|
}
|