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

pb.fast.go会自动生成一个size()的方法,如果结构里面刚好定义了一个size字段 就会报冲突 #24

Open
23buliuhu opened this issue Jun 10, 2024 · 1 comment

Comments

@23buliuhu
Copy link

img_v3_02bn_35b470c3-41ac-4c63-b802-63a45949055g
mKL12oCOrK
goland 提示报错 Type '*AppletInfo' has both field and method named 'Size'

protobuf好像也有类似的,不过应该很早就修复了
gogo/protobuf#56

@HeyJavaBean
Copy link
Member

对,现在确实会有这个问题,暂时没办法解决,只能先改下field名称规避一下

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

No branches or pull requests

2 participants