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

Function extractStruct

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

Source from the content-addressed store, hash-verified

52}
53
54func extractStruct(app appender, path []string, input reflect.Value) {
55 v := input.FieldByName(path[0])
56 if v.IsValid() {
57 switch v.Kind() {
58 case reflect.String:
59 app(v.String())
60 default:
61 extract(app, path[1:], v)
62 }
63 }
64}

Callers 1

extractFunction · 0.85

Calls 2

extractFunction · 0.85
StringMethod · 0.65

Tested by

no test coverage detected