{}
run-icon
main.go
package main import ( "fmt" "reflect" ) func main() { foo := [][]int{{1, 2}, {2, 3}} baa := []int{1, 2} if reflect.DeepEqual(foo[0], baa) { fmt.Println("true") } else { fmt.Println("false") } }
Output