Files
terraform-provider-dynamix/internal/service/cloudbroker/stack/flattens/flatten_eco.go
asteam 6f40af6a5f 1.0.0
2024-07-25 14:33:38 +03:00

19 lines
291 B
Go

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 ""
}
}