mirror of
https://github.com/chai2010/advanced-go-programming-book.git
synced 2025-05-24 12:32:21 +00:00
commit
541cdf8a7c
@ -346,11 +346,11 @@ func main() {
|
||||
|
||||
client := NewPubsubServiceClient(conn)
|
||||
|
||||
reply, err := client.Publish(context.Background(), &String{Value: "golang: hello Go"})
|
||||
_, err = client.Publish(context.Background(), &String{Value: "golang: hello Go"})
|
||||
if err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
reply, err := client.Publish(context.Background(), &String{Value: "docker: hello Docker"})
|
||||
_, err = client.Publish(context.Background(), &String{Value: "docker: hello Docker"})
|
||||
if err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user