ii64 / tanem

The Android Native Emulator (WIP:JVM)
GNU General Public License v2.0
3 stars 1 forks source link

(RVV-B0011) Exported function returning value of unexported type detected #2

Open ii64 opened 3 years ago

ii64 commented 3 years ago

Description

An exported function or method returning a value of an un-exported type may be frustrating to use. Non-preferred way: go type unexportedType string func ExportedFunc() *unexportedType { return &unexportedType("some string") } Preferred way: go type ExportedType string func ExportedFunc() *ExportedType { return &ExportedType("some string") }

Occurrences

There are 16 occurrences of this issue in the repository.

See all occurrences on DeepSource → deepsource.io/gh/ii64/tanem/issue/RVV-B0011/occurrences/