go-spice/examples/main.go

22 lines
254 B
Go
Raw Permalink Normal View History

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()
}