Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

go 指针和引用 | 迷茫的小螃蟹 #13

Open
crab21 opened this issue Sep 23, 2020 · 0 comments
Open

go 指针和引用 | 迷茫的小螃蟹 #13

crab21 opened this issue Sep 23, 2020 · 0 comments

Comments

@crab21
Copy link
Owner

crab21 commented Sep 23, 2020

https://blog.imrcrab.com/2020/09/23/go-%E6%8C%87%E9%92%88%E5%92%8C%E5%BC%95%E7%94%A8/#more

今写代码时,传函数无意间想到一个问题,slice通过参数传递给函数,为何可以改变具体的值呢? 如何解决这个问题? 官方查文档 看源码 google看看有没有好的见解 思考🤔+冥想🧘‍♂️ (ps:解决问题,主要不是看结果是怎么样的,主要是考虑问题的角度)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant