Skip to content

Commit

Permalink
Added FlattenFloatSlice utils function
Browse files Browse the repository at this point in the history
  • Loading branch information
jrauschenbusch committed May 25, 2020
1 parent 8958f87 commit 7315410
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions azurerm/utils/common_marshal.go
Expand Up @@ -40,6 +40,16 @@ func FlattenStringSlice(input *[]string) []interface{} {
return result
}

func FlattenFloatSlice(input *[]float64) []interface{} {
result := make([]interface{}, 0)
if input != nil {
for _, item := range *input {
result = append(result, item)
}
}
return result
}

func FlattenMapStringPtrString(input map[string]*string) map[string]interface{} {
result := make(map[string]interface{})
for k, v := range input {
Expand Down

0 comments on commit 7315410

Please sign in to comment.