Skip to content

publishBuilder is not exported and annoying to use  #135

@gabriel-vasile

Description

@gabriel-vasile

A publishBuilder can be used like this:

publishBuilder := pn.Publish()

publishBuilder.Channel("hello_world").Message(msg).Execute()

But looking in go docs for the package there is no entry for Channel(), Message(), or Execute().
This happens because publishBuilder is not exported but has exported methods.

golang/lint#210 explains why there are lint rules for situations like this.

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