This repository was archived by the owner on Sep 7, 2021. It is now read-only.
  
  
  
  
  
Description
  
  
    
        
          |  | return convertAssign(dst, pk[0]) | 
    
   
 
in session_find.go:259 ~ 271
containerValueSetFunc = func(newValue *reflect.Value, pk core.PK) error {
	keyValue := reflect.New(keyType)
	err := convertPKToValue(table, keyValue.Interface(), pk)
	if err != nil {
		return err
	}
	if isPointer {
		containerValue.SetMapIndex(keyValue.Elem(), newValue.Elem().Addr())
	} else {
		containerValue.SetMapIndex(keyValue.Elem(), newValue.Elem())
	}
	return nil
}	session_find.go:306 containerValueSetFunc(&newValue, nil) . pk will be nil.
but in convertPKToValue.  return convertAssign(dst, pk[0])
so ... nil[0] ....