func doTheCGo(){
f := C.CString("/path/to/file.ext")
o := C.CString("useful values for c call")
defer func(){
C.free(unsafe.Pointer(f))
C.free(unsafe.Pointer(o))
}()
// call a C function with f and o; this function does NOT mutate this objects
} f := C.CString("/path/to/file.ext")
defer C.free(unsafe.Pointer(f))-j
// openDoc returns the document handle for the metadata extraction--
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...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Turnitin is a Registered product of Turnitin UK, Ltd which is a wholly owned subsidiary of Turnitin, LLC. Turnitin UK, Ltd is a company registered in England and Wales with company number 07321841.
DISCLAIMER: This e-mail and any files transmitted with it are confidential and intended solely for use by the recipient to which it is addressed. If this email has been misdirected in error please contact us on +44 (0) 191 681 0200. This e-mail and any attachments have been scanned for viruses prior to sending. No liability will be accepted for any loss incurred as a result of any viruses being passed on. Any form of unauthorised publication or distribution is strictly prohibited.