You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 21, 2019. It is now read-only.
Go 中函数间传递数组,尽量避免用数组,用指针和切片更好。
原因:函数间传递参数传递的是值,直接传递数组会增大不必要的内存;用指针传递的话只会开辟一个指针的内存,而切片也是只占用头指针的内存。
如下:
The text was updated successfully, but these errors were encountered: