Documentation ¶
Overview ¶
This program extends part 1.
It makes a connection the host and port specified by the -dial flag, reads lines from standard input and writes JSON-encoded messages to the network connection.
You can test this program by installing and running the dump program:
$ go get github.com/sbinet/whispering-gophers/util/dump $ dump -listen=localhost:8000
And in another terminal session, run this program:
$ part2 -dial=localhost:8000
Lines typed in the second terminal should appear as JSON objects in the first terminal.
Click to show internal directories.
Click to hide internal directories.