-
Notifications
You must be signed in to change notification settings - Fork 10
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
Unused code gets go vet
error
#7
Comments
@spacewander Nice catch~
this could be a proper way to mute this vet warning, but I'm not sure if it's worthing, it may complicate the code. |
What about passing the Data ptr like: envoy-go-extension/pkg/http/capi.go Lines 46 to 55 in c20a07e
|
See mosn#7 Signed-off-by: spacewander <[email protected]>
Actually we can delay the |
See #7 Signed-off-by: spacewander <[email protected]>
I have checked all the errors, and it seems they come from unused file or argument, so we can simply remove them.
We can pass the addr of a flat buffer instead of
[]string
to avoidpossibly passing Go type with embedded pointer to C
It seems we can simply write
sHdr.Data = uintptr(ptr)
in this case? Do I miss something?The text was updated successfully, but these errors were encountered: