github.com/nevins-b/terraform@v0.3.8-0.20170215184714-bbae22007d5a/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 }