1
0
mirror of https://github.com/chai2010/advanced-go-programming-book.git synced 2025-05-24 12:32:21 +00:00

fixed code

This commit is contained in:
sfw 2018-08-06 21:23:46 +08:00
parent 1d13c6f463
commit 02b868a883

View File

@ -346,11 +346,11 @@ func main() {
client := NewPubsubServiceClient(conn) 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 { if err != nil {
log.Fatal(err) 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 { if err != nil {
log.Fatal(err) log.Fatal(err)
} }