GO的值传递和引用传递

crazywill · · 3241 次点击
soldier
go/web/microservice/bigdata
typically,array is transfered by value and slice is by reference
#2
更多评论
**值传递** ```type Integer int func (a *Integer) Assign(b Integer) { *a = Integer(b) }``` map就不说了,跟值不值的没关系
#1