GetByPath returns a *FieldInfo for a given string path.
(path string)
| 35 | |
| 36 | // GetByPath returns a *FieldInfo for a given string path. |
| 37 | func (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 |
no outgoing calls