Inspectopedia
 
2024.3

Unexported return type of the exported function

Warning
Code Style
New
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: