Skip to content

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

@ii64

Description

@ii64

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/

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions