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

publishBuilder is not exported and annoying to use #135

Open
gabriel-vasile opened this issue Sep 14, 2022 · 0 comments
Open

publishBuilder is not exported and annoying to use #135

gabriel-vasile opened this issue Sep 14, 2022 · 0 comments

Comments

@gabriel-vasile
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant