Hi, I am using swig to generate a go wrapper for one of my projects. I am seeing the following error in generated code. Is there any workaround for this?
type swig_gostring struct { p uintptr; n int } func swigCopyString(s string) string { p := *(*swig_gostring)(unsafe.Pointer(&s)) up := unsafe.Pointer(p.p) * r := string((*[0x7fffffff]byte)(up)[:p.n]) // This line gives a go vet error: *possible misuse of unsafe.Pointer Swig_free(p.p) return r } Vishnu -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/523bd0cb-b5ba-4746-8e28-32b91d1ea051%40googlegroups.com.