go-spice/examples/main.go
Vasiliy Tolstov f3a0197dd9 initial import
Signed-off-by: Vasiliy Tolstov <v.tolstov@selfip.ru>
2017-07-08 23:23:17 +03:00

22 lines
254 B
Go

package main
import (
"net"
spice "github.com/vtolstov/go-spice"
)
func main() {
conn, err := net.Dial("tcp", "127.0.0.1:6789")
if err != nil {
panic(err)
}
sp, err := spice.Connect(conn)
if err != nil {
panic(err)
}
defer sp.Close()
}