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

Function MapStr

cf/formatters/string.go:8–16  ·  view source on GitHub ↗
(args interface{})

Source from the content-addressed store, hash-verified

6)
7
8func MapStr(args interface{}) []string {
9 r := reflect.ValueOf(args)
10 rval := make([]string, r.Len())
11 for i := 0; i < r.Len(); i++ {
12 rval[i] = r.Index(i).Interface().(fmt.Stringer).String()
13 }
14 return rval
15
16}

Callers

nothing calls this directly

Calls 2

StringMethod · 0.65
LenMethod · 0.45

Tested by

no test coverage detected