You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by ac...@apache.org on 2017/10/04 20:58:59 UTC

qpid-proton git commit: NO-JIRA: go example README.md corrections

Repository: qpid-proton
Updated Branches:
  refs/heads/master 338cb30eb -> fdaff9c4c


NO-JIRA: go example README.md corrections


Project: http://git-wip-us.apache.org/repos/asf/qpid-proton/repo
Commit: http://git-wip-us.apache.org/repos/asf/qpid-proton/commit/fdaff9c4
Tree: http://git-wip-us.apache.org/repos/asf/qpid-proton/tree/fdaff9c4
Diff: http://git-wip-us.apache.org/repos/asf/qpid-proton/diff/fdaff9c4

Branch: refs/heads/master
Commit: fdaff9c4cc2c975a9ead07c4340ce387aa3c7fb0
Parents: 338cb30
Author: Alan Conway <ac...@redhat.com>
Authored: Wed Oct 4 13:47:08 2017 -0400
Committer: Alan Conway <ac...@redhat.com>
Committed: Wed Oct 4 16:58:32 2017 -0400

----------------------------------------------------------------------
 examples/go/README.md | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/qpid-proton/blob/fdaff9c4/examples/go/README.md
----------------------------------------------------------------------
diff --git a/examples/go/README.md b/examples/go/README.md
index 24f4d2a..eaf6639 100644
--- a/examples/go/README.md
+++ b/examples/go/README.md
@@ -8,7 +8,7 @@ simple API for writing concurrent AMQP clients and servers.
 - [receive.go](electron/receive.go) receive from many connections concurrently.
 - [send.go](electron/send.go) send to many connections concurrently.
 - [broker.go](electron/broker.go) a simple broker using the electron API
-n
+
 ## Proton examples
 
 [qpid.apache.org/proton](http://godoc.org/qpid.apache.org/proton) is an
@@ -59,18 +59,18 @@ You can compile the program first and then run the executable to avoid the delay
 All the examples take a `-h` flag to show usage information, and the comments in
 the example source have more details.
 
-First start the broker (the optional `-debug` flag will print extra information about
-what the broker is doing)
+First start the broker on the default AMQP port 5672 (the optional `-debug` flag
+will print extra information about what the broker is doing)
 
-    go run broker.go -debug
+    go run broker.go -addr=:5672 -debug   # Use a different port if 5672 is not available.
 
 Send messages concurrently to queues "foo" and "bar", 10 messages to each queue:
 
-    go run send.go -count 10 localhost:/foo localhost:/bar
+    go run send.go -count 10 amqp://localhost:5672/foo amqp://localhost:5672/bar
 
 Receive messages concurrently from "foo" and "bar". Note -count 20 for 10 messages each on 2 queues:
 
-    go run receive.go -count 20 localhost:/foo localhost:/bar
+    go run receive.go -count 20 amqp://localhost:5672/foo amqp://localhost:5672/bar
 
 The broker and clients use the standard AMQP port (5672) on the local host by
 default, to use a different address use the `-addr host:port` flag.


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org