gottdad/main.go
2020-06-14 16:32:21 +02:00

17 lines
313 B
Go

package main
import (
"bufio"
"net"
)
func main() {
conn, err := net.Dial("tcp", "poop.siteop.biz:3977")
failError(err, "net.Dial")
logInfoDebug("Connected to poop.siteop.biz:3977")
// listen for reply
message, _ := bufio.NewReader(conn).ReadString('\n')
fmt.Print("Message from server: " + message)
}