mirror of
https://github.com/bpg/terraform-provider-proxmox.git
synced 2025-07-01 11:02:59 +00:00
12 lines
294 B
Go
12 lines
294 B
Go
package utils
|
|
|
|
// ConvertToStringSlice helps convert interface slice to string slice.
|
|
func ConvertToStringSlice(interfaceSlice []interface{}) []string {
|
|
resultSlice := []string{}
|
|
for _, val := range interfaceSlice {
|
|
resultSlice = append(resultSlice, val.(string))
|
|
}
|
|
|
|
return resultSlice
|
|
}
|