Here's a basic TCP client implementation in Go using the standard net package:
main.go826 chars37 linesThis code establishes a TCP connection to a server at the address host:port, sends a message to the server, reads the server's response, and prints it to the console. It's a good starting point for building more elaborate TCP clients in Go.
gistlibby LogSnag