MCPcopy Create free account
hub / github.com/apache/devlake / reflectValue

Function reflectValue

backend/helpers/pluginhelper/api/reflection_helper.go:36–45  ·  view source on GitHub ↗
(obj any)

Source from the content-addressed store, hash-verified

34}
35
36func reflectValue(obj any) reflect.Value {
37 obj = models.UnwrapObject(obj)
38 val := reflect.ValueOf(obj)
39 kind := val.Kind()
40 for kind == reflect.Ptr || kind == reflect.Interface {
41 val = val.Elem()
42 kind = val.Kind()
43 }
44 return val
45}
46
47func reflectType(obj any) reflect.Type {
48 obj = models.UnwrapObject(obj)

Callers 3

reflectFieldFunction · 0.85
setScopeFieldsMethod · 0.85
returnPrimaryKeyValueFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected