Ubuntu Pastebin

Paste from rog at Fri, 16 Oct 2015 13:55:52 +0000

Download as text
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()
Download as text