github.com/vtorhonen/terraform@v0.9.0-beta2.0.20170307220345-5d894e4ffda7/builtin/providers/alicloud/struct_security_groups.go (about) 1 package alicloud 2 3 // Takes the result of flatmap.Expand for an array of strings 4 // and returns a []string 5 func expandStringList(configured []interface{}) []string { 6 vs := make([]string, 0, len(configured)) 7 for _, v := range configured { 8 vs = append(vs, v.(string)) 9 } 10 return vs 11 }