Files
terraform-provider-dynamix/internal/service/cloudbroker/stack/flattens/flatten_eco.go

19 lines
291 B
Go
Raw Normal View History

2024-07-25 14:33:38 +03:00
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 ""
}
}