0
0
mirror of https://github.com/bpg/terraform-provider-proxmox.git synced 2025-07-01 11:02:59 +00:00
terraform-provider-proxmox/utils/strings.go
Pavel Boldyrev f04b729db2
a first step to breakdown the vm.go - agent
Signed-off-by: Pavel Boldyrev <627562+bpg@users.noreply.github.com>
2024-01-31 22:01:36 -05:00

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
}