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

Function extract

util/extract/extract.go:37–46  ·  view source on GitHub ↗
(app appender, path []string, input reflect.Value)

Source from the content-addressed store, hash-verified

35}
36
37func extract(app appender, path []string, input reflect.Value) {
38 switch input.Kind() {
39 case reflect.Struct:
40 extractStruct(app, path, input)
41 case reflect.Slice:
42 extractSlice(app, path, input)
43 case reflect.Interface:
44 extract(app, path, input.Elem())
45 }
46}
47
48func extractSlice(app appender, path []string, input reflect.Value) {
49 for i := 0; i < input.Len(); i++ {

Callers 3

ListFunction · 0.85
extractSliceFunction · 0.85
extractStructFunction · 0.85

Calls 2

extractStructFunction · 0.85
extractSliceFunction · 0.85

Tested by

no test coverage detected