1
0
Fork 0
yeast/socket_send.go

17 lines
246 B
Go

package main
import (
"fmt"
"github.com/localhots/yeast/unit"
)
func main() {
u := unit.New("uuid")
msg := []byte("{}")
fmt.Println("Sending message:", string(msg))
resp, _ := u.Send(msg)
fmt.Println("Reply recieved:", string(resp))
}