Skip to content

Instantly share code, notes, and snippets.

@russmack
Created June 15, 2017 00:33
Show Gist options
  • Save russmack/3bed13ea0a85eed5725969da4230fb99 to your computer and use it in GitHub Desktop.
Save russmack/3bed13ea0a85eed5725969da4230fb99 to your computer and use it in GitHub Desktop.
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