code: func newUnixSocketClient(path string, ns types.StreamName) (Client, error) {
  	// Ensure that the supplied path exists and is a named pipe.
  	info, err := os.Lstat(path)
  	if err != nil {
  		return nil, fmt.Errorf("failed to stat file [%s]: %s", path, err)
  	}
  	if info.Mode()&os.ModeSocket == 0 {
  		return nil, fmt.Errorf("not a named pipe: [%s]", path)
  	}
  
  	return &clientImpl{
  		factory: func() (io.WriteCloser, error) {
  			return net.Dial("unix", path)
  		},
  		ns: ns,
  	}, nil
  }
docs: // newUnixSocketClient creates a new Client instance bound to a named pipe stream
  // server.
  //
  // newNPipeClient currently only works on POSIX (non-Windows) systems.