title: Named Pipes in Go for both Windows and Linux
body: <p>I am new to Go, I want to create Named Pipes implementation in Go which works on both Windows and Linux.</p>
  
  <p>I managed to get the code working on Ubuntu, but this one does not work on Windows</p>
  
  <p>Isn't there any abstraction in Go which allows you to work with Named Pipes in both environment</p>
  
  <p>Below is piece of my code</p>
  
  <pre><code>//to create pipe: does not work in windows    
  syscall.Mkfifo("tmpPipe", 0666)    
  
  // to open pipe to write    
  file, err1 := os.OpenFile("tmpPipe", os.O_RDWR, os.ModeNamedPipe)    
  
  //to open pipe to read    
  file, err := os.OpenFile("tmpPipe", os.O_RDONLY, os.ModeNamedPipe)
  </code></pre>
  
  <p>Any help or pointers would help a lot. Thanks</p>