code: func generateID(mutex *sync.Mutex, ids map[uint16]bool) uint16 {
  	mutex.Lock()
  	id := uint16(1)
  	for ; id <= math.MaxUint16; id++ {
  		if _, ok := ids[id]; !ok {
  			break
  		}
  	}
  	ids[id] = true
  	mutex.Unlock()
  	return id
  }
docs: // generateID generates a unique exportID to assign an export