{}
BLACK FRIDAY SALE
Get Programiz PRO for LIFE at 60% off!
Claim My Discount
Sale ends in
BLACK FRIDAY
Save 60% on PRO: Sale Ends Soon!
Claim My Discount
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