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') logInfoDebug("Message from server: %s", message) }