Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- func equal( x, y map[ string] int) bool {
- if len(x) != len(y) {
- return false
- }
- for k, xv := range x {
- if yv, ok := y[ k]; !ok || yv != xv {
- return false
- }
- }
- return true
- }
- equal( map[ string] int{" A": 0}, map[ string] int{" B": 42})
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement