[PR #934] [MERGED] Struct Engine has methods on both value #13164

Closed
opened 2026-08-05 02:07:37 -04:00 by saavagebueno · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbirdio/netbird/pull/934
Author: @pappz
Created: 6/5/2023
Status: Merged
Merged: 6/5/2023
Merged by: @pappz

Base: mainHead: fix/pointer_methods_in_engine


📝 Commits (1)

  • 2f07c93 Struct Engine has methods on both value

📊 Changes

1 file changed (+2 additions, -2 deletions)

View changed files

📝 client/internal/engine.go (+2 -2)

📄 Description

Describe your changes

Struct Engine has methods on both value and pointer receivers.
Such usage is not recommended by the Go Documentation.

Checklist

  • Is it a bug fix
  • Is a typo/documentation fix
  • Is a feature enhancement
  • It is a refactor
  • Created tests that fail without the change (if possible)
  • Extended the README / documentation, if necessary

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/netbirdio/netbird/pull/934 **Author:** [@pappz](https://github.com/pappz) **Created:** 6/5/2023 **Status:** ✅ Merged **Merged:** 6/5/2023 **Merged by:** [@pappz](https://github.com/pappz) **Base:** `main` ← **Head:** `fix/pointer_methods_in_engine` --- ### 📝 Commits (1) - [`2f07c93`](https://github.com/netbirdio/netbird/commit/2f07c932f4fadd52eebeef5bdf89f5aa3369b7ac) Struct Engine has methods on both value ### 📊 Changes **1 file changed** (+2 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `client/internal/engine.go` (+2 -2) </details> ### 📄 Description ## Describe your changes Struct Engine has methods on both value and pointer receivers. Such usage is not recommended by the Go Documentation. ## Issue ticket number and link ### Checklist - [x] Is it a bug fix - [ ] Is a typo/documentation fix - [ ] Is a feature enhancement - [ ] It is a refactor - [ ] Created tests that fail without the change (if possible) - [ ] Extended the README / documentation, if necessary --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
saavagebueno added the pull-request label 2026-08-05 02:07:37 -04:00
Sign in to join this conversation.
No Label pull-request
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: DYNR/netbird#13164