摘要:
new 函数 在官方文档中,new函数的描述如下 // The new built-in function allocates memory. The first argument is a type, // not a value, and the value returned is a poin 阅读全文
摘要:
什么是指针 请关注原作者公众号:Go编程时光 当我们定义一个变量 name var name string = "Go指针" 此时,name 是变量名,它只是编程语言中方便程序员编写和理解代码的一个标签。 当我们访问这个标签时,计算机会返回给我们它指向的内存地址里存储的值:Go指针。 出于某些需要, 阅读全文