Open gabriel-vasile opened 2 years ago
A publishBuilder can be used like this:
publishBuilder
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.
Channel()
Message()
Execute()
https://github.com/golang/lint/issues/210 explains why there are lint rules for situations like this.
A
publishBuilder
can be used like this:But looking in go docs for the package there is no entry for
Channel()
,Message()
, orExecute()
. This happens becausepublishBuilder
is not exported but has exported methods.https://github.com/golang/lint/issues/210 explains why there are lint rules for situations like this.