go隨聊-指針

指針!對的,你沒有看錯,Golang居然有指針,C++轉過來的人笑了。 值傳遞 func Update(value int) { value=value+1 } func main() { value:=1 Update(value) fmt.Println("當前值:",value) } ----------------------------------- 當前值: 1 value的
相關文章
相關標籤/搜索