title: how to compare two [][]string arrays in golang
body: <pre><code>func assertEq(test [][]string, ans [][]string) {
      for i := 0; i &lt; len(test); i++ {
          for j := 0; j &lt; len(ans); j++ {
              if test[i][j] != ans[i][j] {
                  fmt.Print(test)
                  fmt.Print(" ! ")
                  fmt.Print(ans)
              }
          }
      }
      fmt.Println()
  }
  </code></pre>
  
  <p>In my code it's not checking. I have used two different string arrays to compare each and every character.</p>