func main(){
dst := 1
src := 2
inter(&dst,&src)
fmt.Println(dst)
}
func inter(dst interface{}, src interface{}){
dst = src
}
```
func inter(dst interface{}, src interface{}){
*dst.(*int) = *src.(*int)
}
```
#2
更多评论