Is it possible to send a function's return value directly to a golang channel? The below doesn't work:
BytesOutChan<-, err = bufio.NewWriter(conn).Write(...)
Is there any way to do this? Failing that, is there any way to automatically add to a variable? For example, in C you can do this:
myInt += fReturnsInt();
You can do this golang, but is it possible with multiple return values? This would cut down the verbosity of my code greatly.
Thanks in advance.