This is an automated email from the ASF dual-hosted git repository.
cckellogg pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/pulsar-client-go.git
The following commit(s) were added to refs/heads/master by this push:
new 171ef57 Go version required should be 1.13, example produce log print
error (#649)
171ef57 is described below
commit 171ef578e91a661c35523dccca35618b8c560b93
Author: ZhangJian He <[email protected]>
AuthorDate: Thu Oct 28 02:28:23 2021 +0800
Go version required should be 1.13, example produce log print error (#649)
---
README.md | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/README.md b/README.md
index 17537eb..73bd982 100644
--- a/README.md
+++ b/README.md
@@ -36,7 +36,7 @@ CGo based library.
## Requirements
-- Go 1.11+
+- Go 1.13+
## Status
@@ -72,8 +72,9 @@ defer producer.Close()
if err != nil {
fmt.Println("Failed to publish message", err)
+} else {
+ fmt.Println("Published message")
}
-fmt.Println("Published message")
```
Create a Consumer: