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

remove plugin method #7

Merged
merged 2 commits into from
Dec 1, 2020
Merged

remove plugin method #7

merged 2 commits into from
Dec 1, 2020

Conversation

mschoch
Copy link
Contributor

@mschoch mschoch commented Nov 30, 2020

rather than have a method Plugin() which returns a value
implementing the interface (typed as segment.Plugin)

the code (in scorch) registering this version can instead
simply use &zapv15.ZapPlugin{} which satisfies the interface

this more naturally follows the Go convention of consumers
defining the interface they need to work with, and it
further simplifies the segment api package

rather than have a method Plugin() which returns a value
implementing the interface (typed as segment.Plugin)

the code (in scorch) registering this version can instead
simply use &zapv15.ZapPlugin{} which satisfies the interface

this more naturally follows the Go convention of consumers
defining the interface they need to work with, and it
further simplifies the segment api package
@mschoch mschoch merged commit 1747229 into master Dec 1, 2020
@mschoch mschoch deleted the remove-plugin-method branch December 1, 2020 19:59
abhinavdangeti added a commit that referenced this pull request Nov 10, 2023
To absorb:
* 0ea762e Abhi Dangeti | Temporarily revert free-ing C pointers/buffers - adding a TODO for this (#7)
abhinavdangeti added a commit that referenced this pull request Nov 10, 2023
To absorb:
* 0ea762e Abhi Dangeti | Temporarily revert free-ing C pointers/buffers - adding a TODO for this (#7)
moshaad7 pushed a commit that referenced this pull request Sep 12, 2024
To absorb:
* 0ea762e Abhi Dangeti | Temporarily revert free-ing C pointers/buffers - adding a TODO for this (#7)
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