Skip to content

Use reflect.Pointer and Ptr* helpers via new() - #197

Merged
gab-arrobo merged 1 commit into
omec-project:mainfrom
gab-arrobo:use-reflect-pointer
Oct 7, 2026
Merged

gab-arrobo merged 1 commit into
omec-project:mainfrom
gab-arrobo:use-reflect-pointer

Conversation

@gab-arrobo

Copy link
Copy Markdown
Contributor

No description provided.

Signed-off-by: Arrobo, Gabriel <gabriel.arrobo@intel.com>
@gab-arrobo
gab-arrobo requested review from a team and a balanced review from Copilot October 7, 2026 20:13

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟢 Approval recommended

The changes are consistent with Go 1.26 and preserve existing utility behavior.

0 open findings

What changed in this PR

Modernizes utility code for Go 1.26 while cleaning module metadata.

Changes:

  • Uses initialized new(v) pointer helpers.
  • Replaces reflect.Ptr with reflect.Pointer.
  • Removes the stale direct testify requirement.
File Description
utils.go Modernizes pointer creation and reflection kinds.
go.mod Removes an unused indirect dependency.
go.sum Updates dependency checksums.
Files not reviewed (1)
  • utils.go: Generated file

🧠 Review effort: Balanced


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@andybavier andybavier left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

+1

@gab-arrobo
gab-arrobo merged commit 53d72a8 into omec-project:main Oct 7, 2026
9 checks passed
@gab-arrobo
gab-arrobo deleted the use-reflect-pointer branch October 7, 2026 22:30
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.

3 participants