22 lines
254 B
Go
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()
|
|
|
|
}
|