b5ab8f9578e65caaa5e6c27080d305d49a4bae79.svn-base 257 B

123456789101112131415161718
  1. package main
  2. import (
  3. "fmt"
  4. "unsafe"
  5. )
  6. func main(){
  7. mp := make(map[string]int)
  8. mp["qcrao"] = 100
  9. mp["stefno"] = 18
  10. a := int(int32(1))
  11. count := **(**int)(unsafe.Pointer(&mp))
  12. fmt.Printf("count %T\n",count)
  13. fmt.Println(count, len(mp),a) // 2 2
  14. }