golang走起(一)对象与指针

golang走起(一)对象与指针 代码以下:css package main import ( "fmt" ) type Person struct { age int } func Create(a int) (p Person) { return Person{age: a} } func Add(p Person) { p.age += 10 } f
相关文章
相关标签/搜索