code: func createChannels(opts *Options) []wsstream.ChannelType {
  	// open the requested channels, and always open the error channel
  	channels := make([]wsstream.ChannelType, 5)
  	channels[stdinChannel] = readChannel(opts.Stdin)
  	channels[stdoutChannel] = writeChannel(opts.Stdout)
  	channels[stderrChannel] = writeChannel(opts.Stderr)
  	channels[errorChannel] = wsstream.WriteChannel
  	channels[resizeChannel] = wsstream.ReadChannel
  	return channels
  }
docs: // createChannels returns the standard channel types for a shell connection (STDIN 0, STDOUT 1, STDERR 2)
  // along with the approximate duplex value. It also creates the error (3) and resize (4) channels.