github.com/pbthorste/terraform@v0.8.6-0.20170127005045-deb56bd93da2/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 }