code: func getExecutorInfoByExecutorID(executorID string, executors []executorInfo) *executorInfo {
  	for _, executor := range executors {
  		if executor.ID == executorID {
  			return &executor
  		}
  	}
  	return nil
  }
docs: // getExecutorInfoByExecutorID returns the executorInfo struct given its ID.