Created
July 21, 2014 23:38
-
-
Save matryer/7b950294d26f1a344a67 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cfg := nsq.NewConfig() | |
producer, err := nsq.NewProducer("127.0.0.1:4161", cfg) | |
if err != nil { | |
fatal(err) | |
} | |
producer.Publish("topic", []byte("Test")) | |
producer.Stop() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yields: