Skip to content

Use reflect.Pointer instead of reflect.Ptr#239

Merged
bestbeforetoday merged 1 commit into
hyperledger:mainfrom
bestbeforetoday:reflect-pointer
May 5, 2026
Merged

Use reflect.Pointer instead of reflect.Ptr#239
bestbeforetoday merged 1 commit into
hyperledger:mainfrom
bestbeforetoday:reflect-pointer

Conversation

@bestbeforetoday

Copy link
Copy Markdown
Member

reflect.Pointer replaced reflect.Ptr in Go 1.18. For backwards compatibility, reflect.Ptr is a constant with the value of reflect.Pointer. The use of this constant triggers a lint failure as it should be inlined. This can be avoided by using the preferred reflect.Pointer constant.

reflect.Pointer replaced reflect.Ptr in Go 1.18. For backwards
compatibility, reflect.Ptr is a constant with the value of
reflect.Pointer. The use of this constant triggers a lint failure as it
should be inlined. This can be avoided by using the preferred
reflect.Pointer constant.

Signed-off-by: Mark S. Lewis <Mark.S.Lewis@outlook.com>
@bestbeforetoday
bestbeforetoday enabled auto-merge (squash) May 5, 2026 10:11

@SamYuan1990 SamYuan1990 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@bestbeforetoday
bestbeforetoday merged commit 4b9e5ed into hyperledger:main May 5, 2026
15 checks passed
@bestbeforetoday
bestbeforetoday deleted the reflect-pointer branch May 5, 2026 13:16
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

Successfully merging this pull request may close these issues.

2 participants