davecgh / go-spew

Implements a deep pretty printer for Go data structures to aid in debugging
ISC License
5.98k stars 361 forks source link

*C.struct_ABC => panic #132

Open Robert-M-Muench opened 3 years ago

Robert-M-Muench commented 3 years ago

When using CGO and some pointers to C structs, spew tries to dump these and panics.

If I change to unsafe.Pointer and add a lot of casts to my code, spew understands that unsafe.Pointer shouldn't be followed.

I would be nice if spew can handle *C... whatever pointers too.