Unexported return type of the exported function

Last modified: 03 December 2024

Reports exported functions with unexported return types.

Unexported types can be difficult to use when viewing documentation under go doc.

Example:

You can apply Export quick-fix to export the type. After the quick-fix is applied, type name will be capitalized: