MCPcopy
hub / github.com/jmoiron/sqlx / GetByPath

Method GetByPath

reflectx/reflect.go:37–39  ·  view source on GitHub ↗

GetByPath returns a *FieldInfo for a given string path.

(path string)

Source from the content-addressed store, hash-verified

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

Callers 4

TestBasicEmbeddedFunction · 0.80
TestFieldsEmbeddedFunction · 0.80
TestTagNameMappingFunction · 0.80
TestMappingFunction · 0.80

Calls

no outgoing calls

Tested by 4

TestBasicEmbeddedFunction · 0.64
TestFieldsEmbeddedFunction · 0.64
TestTagNameMappingFunction · 0.64
TestMappingFunction · 0.64