You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It can be implemented in more ways. For example, right now in garble we have a map[string]importedPkg which also contains the object path, but since it's not a map[string]ExportInfo, I can't reuse it. I'd need two maps with the same keys, which is not ideal.
It doesn't require having all the paths in memory upfront in a map. For example, we could fill a map as we go, memoizing previous queries.
The text was updated successfully, but these errors were encountered:
If you want to keep the func signature short, it would always be possible to do type ImportMap = func(importPath string) (objectPath string) and then importMap ImportMap.
That is, instead of:
just:
Reasons to do so:
map[string]importedPkg
which also contains the object path, but since it's not amap[string]ExportInfo
, I can't reuse it. I'd need two maps with the same keys, which is not ideal.The text was updated successfully, but these errors were encountered: