1 2 3 4 5 6 7 8 9 | func getStructFields(st reflect.Type) (*structFields, error) {
- path := st.PkgPath()
- name := st.Name()
-
- fullName := path + "." + name
fieldMapMutex.RLock()
- fields, found := fieldMap[fullName]
+ fields, found := fieldMap[st]
fieldMapMutex.RUnlock()
|