123456789101112131415161718 |
- package main
- import (
- "fmt"
- "unsafe"
- )
- func main(){
- mp := make(map[string]int)
- mp["qcrao"] = 100
- mp["stefno"] = 18
- a := int(int32(1))
- count := **(**int)(unsafe.Pointer(&mp))
- fmt.Printf("count %T\n",count)
- fmt.Println(count, len(mp),a) // 2 2
- }
|