On Tue, Jan 23, 2018 at 4:54 PM Christian LeMoussel <cnh...@gmail.com>
wrote:

> devidx := C.scan_bus((*C.char(&sbuf[0])), C.int(cap(sbuf)),
C.CString(sn), C.CString(product))

Not tested: devidx := C.scan_bus((*C.char)(unsafe.Pointer(&sbuf[0])),
C.int(cap(sbuf)), C.CString(sn), C.CString(product))




-- 

-j

-- 
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.
For more options, visit https://groups.google.com/d/optout.

Reply via email to