21
examples/main.go
Normal file
21
examples/main.go
Normal file
@@ -0,0 +1,21 @@
|
||||
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()
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user