Skip to content

Instantly share code, notes, and snippets.

@chris-martin
Created October 20, 2016 22:45
Show Gist options
  • Save chris-martin/9450365309daf238726f75165d38609c to your computer and use it in GitHub Desktop.
Save chris-martin/9450365309daf238726f75165d38609c to your computer and use it in GitHub Desktop.
package main
import (
"fmt"
)
type foo struct {
t string
}
func main() {
var x = map[*foo]*foo{
&foo{t: "a"}: &foo{t: "b"},
nil: &foo{t: "c"},
}
fmt.Print(x[nil])
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment