code: func (cs caseList) find(channel interface{}) int {
  	for i, cas := range cs {
  		if cas.Chan.Interface() == channel {
  			return i
  		}
  	}
  	return -1
  }
docs: // find returns the index of a case containing the given channel.