MCPcopy Index your code
hub / github.com/cloudfoundry/cli / getFirstSet

Function getFirstSet

util/ui/ui.go:505–510  ·  view source on GitHub ↗

getFirstSet returns the first map if 1 or more maps are provided. Otherwise it returns the empty map.

(list []map[string]interface{})

Source from the content-addressed store, hash-verified

503// getFirstSet returns the first map if 1 or more maps are provided. Otherwise
504// it returns the empty map.
505func getFirstSet(list []map[string]interface{}) map[string]interface{} {
506 if len(list) == 0 {
507 return map[string]interface{}{}
508 }
509 return list[0]
510}
511
512func sum(intSlice []int) int {
513 sum := 0

Callers 3

DisplayTextWithBoldMethod · 0.85
DisplayTextWithFlavorMethod · 0.85
TranslateTextMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected