import "github.com/skynetservices/skydns/msg"
// create a new message msg := msg.NewMessage("hello world") // send the message to a service err := msg.Send("some-service:1234") if err != nil { // handle error }
// create a message receiver receiver := msg.NewReceiver("my-service:5678") // wait for a message msg, err := receiver.Receive() if err != nil { // handle error } // process the message fmt.Println(msg.Body)Overall, the go github.com.skynetservices.skydns.msg Service package provides a convenient and reliable way to pass messages between different parts of a distributed system.