Skip to content

The name *cachestub.BatchCacheStub does not conform to Go style due to duplication of the package name in the type name. In Go, it is recommended to avoid redundancy by not repeating the package name in the type name. #47

@andreevym

Description

@andreevym
          The name *cachestub.BatchCacheStub does not conform to Go style due to duplication of the package name in the type name. In Go, it is recommended to avoid redundancy by not repeating the package name in the type name.

Variants:

package cachestub

type BatchCache struct {
}

or

package cachestub

type Batch struct {
}

cachestub.BatchCache or cachestub.Batch

like bytes.Buffer etc.

https://google.github.io/styleguide/go/decisions#repetitive-with-package

Originally posted by @muzykantov in #45 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions