mirror of
https://github.com/docker/cli.git
synced 2025-08-30 12:01:10 +03:00
* Add kubernetes Stack API v1beta2 client * Upgrade v1beta1 client to remove generated code Signed-off-by: Silvin Lubecki <silvin.lubecki@docker.com>
12 lines
213 B
Go
12 lines
213 B
Go
package clone
|
|
|
|
// SliceOfString deep copy a slice of strings
|
|
func SliceOfString(source []string) []string {
|
|
if source == nil {
|
|
return nil
|
|
}
|
|
res := make([]string, len(source))
|
|
copy(res, source)
|
|
return res
|
|
}
|