code: func (f *fifo) Write(b []byte) (int, error) {
  	if f.flag&(syscall.O_WRONLY|syscall.O_RDWR) == 0 {
  		return 0, errors.New("writing to read-only fifo")
  	}
  	select {
  	case <-f.opened:
  		return f.file.Write(b)
  	default:
  	}
  	select {
  	case <-f.opened:
  		return f.file.Write(b)
  	case <-f.closed:
  		return 0, errors.New("writing to a closed fifo")
  	}
  }
docs: // Write from byte array to a fifo.