Skip to content

Use reflect.Pointer instead of reflect.Ptr#194

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

Use reflect.Pointer instead of reflect.Ptr#194
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 (false positive) 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 (false positive)
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 requested a review from a team as a code owner May 5, 2026 09:56
@bestbeforetoday bestbeforetoday merged commit 0c52300 into hyperledger:main May 5, 2026
13 checks passed
@bestbeforetoday bestbeforetoday deleted the reflect-pointer branch May 5, 2026 10:06
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.

1 participant