After a code reorganization, many symbols may continue to be exported even though they are no longer referenced from another package. Just as it is helpful to report dead code within an application, it would be useful to report symbols that could safely be unexported.
Gopls has all the information required to do this; we should expose it on request in the UI somehow.
(Or this could be a feature of cmd/deadcode. But cmd/deadcode could be a feature of gopls, too.)
After a code reorganization, many symbols may continue to be exported even though they are no longer referenced from another package. Just as it is helpful to report dead code within an application, it would be useful to report symbols that could safely be unexported.
Gopls has all the information required to do this; we should expose it on request in the UI somehow.
(Or this could be a feature of cmd/deadcode. But cmd/deadcode could be a feature of gopls, too.)