Created
September 5, 2016 12:59
-
-
Save asim/027c1990eb5ee2ddc32bda401a8c0418 to your computer and use it in GitHub Desktop.
This file contains 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
package main | |
import ( | |
"time" | |
"github.com/micro/go-micro/client" | |
example "github.com/micro/micro/examples/template/srv/proto/example" | |
"golang.org/x/net/context" | |
) | |
func main() { | |
p := client.NewPublication("topic.go.micro.srv.template", &example.Message{Say: "hello"}) | |
client.Publish(context.TODO(), p) | |
time.Sleep(time.Second) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment