Example #1
0
func (s *SearcherIMP) Close() error {
	return clownfish.TrapErr(func() {
		self := (*C.lucy_Searcher)(clownfish.Unwrap(s, "s"))
		C.LUCY_Searcher_Close(self)
	})
}
Example #2
0
func doClose(obj Searcher) error {
	self := ((*C.lucy_Searcher)(unsafe.Pointer(obj.TOPTR())))
	return clownfish.TrapErr(func() {
		C.LUCY_Searcher_Close(self)
	})
}