Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ii64 opened this issue Mar 9, 2021 · 0 comments
Open
Labels

Comments

@ii64
Copy link
Owner

ii64 commented Mar 9, 2021

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/

@ii64 ii64 added the devnote label Apr 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant