use package from out value

This commit is contained in:
Paul Weil 2015-08-10 14:00:20 -04:00
parent 72db123025
commit 26d80cdb7f

View File

@ -195,8 +195,8 @@ func (g *conversionGenerator) generateConversionsForMap(inType, outType reflect.
}
inValue := inType.Elem()
outValue := outType.Elem()
g.addImportByPath(inKey.PkgPath())
g.addImportByPath(outKey.PkgPath())
g.addImportByPath(inValue.PkgPath())
g.addImportByPath(outValue.PkgPath())
if err := g.generateConversionsBetween(inValue, outValue); err != nil {
return err
}