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

dot对私有变量的注入 #2

Open
peacess opened this issue Mar 11, 2019 · 1 comment
Open

dot对私有变量的注入 #2

peacess opened this issue Mar 11, 2019 · 1 comment

Comments

@peacess
Copy link
Contributor

peacess commented Mar 11, 2019

No description provided.

@peacess
Copy link
Contributor Author

peacess commented Apr 25, 2019

经过研究,
1,对于非interface的私有字段可以实现,修改
2,对于interface的字段,
这种修改依赖于 go reflect.Value
的私有字段 ptr的依赖,暂时不增加对私有字段的支持
下面是实现的代码
setprivate.txt

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

No branches or pull requests

1 participant