Last active
January 26, 2026 15:04
-
-
Save pablocattaneo/82b6867513ef8a224b3af8ea2532afc5 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // maps.Equal(map1, map2) bool | |
| myMap2 := map[string]string{ | |
| "name": "Alice", | |
| "country": "Wonderland", | |
| } | |
| fmt.Println("Second map:", myMap2) | |
| myMap3 := map[string]string{ | |
| "name": "Alice", | |
| "country": "Wonderland", | |
| } | |
| if maps.Equal(myMap2, myMap3) { | |
| fmt.Println("Maps are equal") | |
| } else { | |
| fmt.Println("Maps are not equal") | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment