title: How to match two string arrays - 3 conditions?
body: <p>I have a logical question here.  I need to print a string in the format &quot;user@email.com group@email.com&quot; for each user whose business title and manager fit the business title, department and manager in the group CSV. If there's more than one matching group the string should be printed as above but with another group. What would be the best approach here? Create arrays from both CSV files then do an if in the loop?</p>
  <p><strong>Example</strong></p>
  <p>GroupCSV:</p>
  <pre><code>Group,Job title,Department,Manager (email address)
  somesalesgroup@dundermifflin.com,Senior Sales Manager,Sales,michael.scott@dundermifflin.com
  anothersalesgroup@dundermifflin.com,Senior Sales Manager,Sales,michael.scott@dundermifflin.com
  </code></pre>
  <p>UserCSV:</p>
  <pre><code>First name,Last name,Location,Start date,Job title,Department,Manager (email address)
  Jim,Halpert,Scranton,7/1/2021,Senior Sales Manager,Sales,michael.scott@dundermifflin.com
  Dwight,Schrute,Scranton,7/1/2021,Assistant to the Regional Manager,Sales,michael.scott@dundermifflin.com
  </code></pre>
  <p>I would like to have an output like:</p>
  <pre><code>[jim.halpert@dundermifflin@takeaway.com somesalesgroup@dundermifflin.com]
  [jim.halpert@dundermifflin@takeaway.com anothersalesgroup@dundermifflin.com]
  </code></pre>
  <p><strong>At the moment I've got this</strong></p>
  <pre><code>var match [][]string
      for _, u := range userRows {
          for _, g := range groupRows {
              if u[0] == g[0] {
                  match = append(match, string{g, u})
              }
          }
      }
  </code></pre>
  <p>But I'm not sure what may be wrong here (string{g, u})</p>