tg: Renamed example, maybe this time godoc will be happy
This commit is contained in:
parent
370ce1c1d8
commit
353f227706
1 changed files with 1 additions and 1 deletions
|
@ -2,7 +2,7 @@ package tg_test
|
||||||
|
|
||||||
// This function creates a basic client that connects to a broker and checks for message containing greetings.
|
// This function creates a basic client that connects to a broker and checks for message containing greetings.
|
||||||
// If it finds a greeting message it will greet back the user (using the reply_to parameter)
|
// If it finds a greeting message it will greet back the user (using the reply_to parameter)
|
||||||
func ExampleHelloClient() {
|
func ExampleCreateBrokerClient() {
|
||||||
CreateBrokerClient("localhost:7314", func(broker *Broker, message APIMessage) {
|
CreateBrokerClient("localhost:7314", func(broker *Broker, message APIMessage) {
|
||||||
// Check if it's a text message
|
// Check if it's a text message
|
||||||
if message.Text != nil {
|
if message.Text != nil {
|
||||||
|
|
Reference in a new issue