On Fri, Apr 20, 2018 at 7:09 AM, Robert Bielik <robert.bie...@gmail.com> wrote:
>>
>> Look at how os.Stdin and friends are initialized in os/file.go.
>> https://golang.org/src/os/file.go#L51 .
>
>
> Hmm... the syscall vars are platform specific. Is there a way to do this
> cross-platform ?
>
> Btw. the syntax worked on linux, but not Windows.

File descriptors work differently on Windows.  As I said upthread, I
was describing a mechanism for Unix.  I don't know how to do this kind
of thing on Windows.

Ian

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to