Hi all, *C code* int reopen (const char *fn, time_t check_interval_sec, int (*callback_func) (int num_entry, char **entry), int retry);
*Go code* func _Open(fileName string, intervalSec int, f func(C.int, **C.char) C.int) int { cFileName := C.CString(fileName) defer C.free(unsafe.Pointer(cFileName)) ret := C.reopen(cFileName, C.long(intervalSec), f, 1) return int(ret) } -- 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/909103a6-c8c0-48bd-8a7d-69ab4aa60ec3n%40googlegroups.com.