How can I perform a non-blocking write on a network connection in Go?
I thought it might be possible to do so by setting the deadline in the past:
conn.SetWriteDeadline(time.Date(0, 0, 0, 0, 0, 0, 1, time.UTC))
n, err := conn.Write(buffer)
... but this just fails with an 'i/o timeout' error without actually writing any bytes to the connection.