To send a binary message to a TCP server in Go, you can follow these steps:
net
package's Dial
function.
main.go87 chars5 lines
encoding/binary
package.
main.go303 chars8 lines
conn
object's Write
method.
main.go75 chars5 lines
conn
object's Read
method.
main.go147 chars7 lines
conn
object's Close
method.
main.go13 chars2 lines
gistlibby LogSnag