1.0.0
This commit is contained in:
18
internal/service/cloudbroker/stack/flattens/flatten_eco.go
Normal file
18
internal/service/cloudbroker/stack/flattens/flatten_eco.go
Normal file
@@ -0,0 +1,18 @@
|
||||
package flattens
|
||||
|
||||
import "strconv"
|
||||
|
||||
func flattenEco(m interface{}) string {
|
||||
switch d := m.(type) {
|
||||
case string:
|
||||
return d
|
||||
case int:
|
||||
return strconv.Itoa(d)
|
||||
case int64:
|
||||
return strconv.FormatInt(d, 10)
|
||||
case float64:
|
||||
return strconv.FormatInt(int64(d), 10)
|
||||
default:
|
||||
return ""
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user