package door func (d *Door) setupChannels() { d.wg.Add(2) go Reader2(d.Config.Comm_handle, d) // go Reader(d.Config.Comm_handle, &d.readerChannel) // go Writer(d.Config.Comm_handle, &d.writerChannel) go Writer2(d.Config.Comm_handle, d) }