MCPcopy Create free account
hub / github.com/cloudfoundry/cli / interfaceToString

Function interfaceToString

cf/manifest/manifest.go:463–469  ·  view source on GitHub ↗
(value interface{})

Source from the content-addressed store, hash-verified

461}
462
463func interfaceToString(value interface{}) string {
464 if f, ok := value.(float64); ok {
465 return strconv.FormatFloat(f, 'f', -1, 64)
466 }
467
468 return fmt.Sprint(value)
469}
470
471func parseRoutes(input generic.Map, errs *[]error) []models.ManifestRoute {
472 if !input.Has("routes") {

Callers 1

envVarOrEmptyMapFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected