package main import ( "log" "time" "github.com/teh-cmc/goautosocket" ) func main() { // connect to a TCP server conn, err := gas.Dial("tcp", "localhost:9999") if err != nil { log.Fatal(err) } // client sends "hello, world!" to the server every second for { _, err := conn.Write([]byte("hello, world!")) if err != nil { // if the client reached its retry limit, give up if err == gas.ErrMaxRetries { l