You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ nl -ba a.go
1 package main
2
3 import "C"
4
5 func _(b []byte) {
6 _ = C.CBytes(b)
7 }
$ vet a.go
a.go:6: possibly passing Go type with embedded pointer to C
Vet reports an error each time the C.CBytes function is called, because its argument is a byte slice, which contains a pointer. However, this function is being used exactly as intended and Vet should make an special exception for it.
The text was updated successfully, but these errors were encountered:
Vet reports an error each time the
C.CBytes
function is called, because its argument is a byte slice, which contains a pointer. However, this function is being used exactly as intended and Vet should make an special exception for it.The text was updated successfully, but these errors were encountered: