pubnub / go

PubNub clients for Go
Other
102 stars 62 forks source link

publishBuilder is not exported and annoying to use #135

Open gabriel-vasile opened 2 years ago

gabriel-vasile commented 2 years ago

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.

https://github.com/golang/lint/issues/210 explains why there are lint rules for situations like this.