Created
June 15, 2017 00:33
-
-
Save russmack/3bed13ea0a85eed5725969da4230fb99 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
package main | |
import ( | |
"fmt" | |
) | |
func fn(m map[int]int) { | |
m = map[int]int{42: 101} | |
} | |
func main() { | |
var m map[int]int | |
fn(m) | |
fmt.Println(len(m)) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment