MCPcopy Create free account
hub / github.com/upper/db / GetByPath

Method GetByPath

internal/reflectx/reflect.go:38–40  ·  view source on GitHub ↗

GetByPath returns a *FieldInfo for a given string path.

(path string)

Source from the content-addressed store, hash-verified

36
37// GetByPath returns a *FieldInfo for a given string path.
38func (f StructMap) GetByPath(path string) *FieldInfo {
39 return f.Paths[path]
40}
41
42// GetByTraversal returns a *FieldInfo for a given integer path. It is
43// analogous to reflect.FieldByIndex.

Callers 1

TestReflectMapperFunction · 0.80

Calls

no outgoing calls

Tested by 1

TestReflectMapperFunction · 0.64