示例#1
0
文件: search.go 项目: rlugojr/lucy
func (s *SearcherIMP) Close() error {
	return clownfish.TrapErr(func() {
		self := (*C.lucy_Searcher)(clownfish.Unwrap(s, "s"))
		C.LUCY_Searcher_Close(self)
	})
}
示例#2
0
func doClose(obj Searcher) error {
	self := ((*C.lucy_Searcher)(unsafe.Pointer(obj.TOPTR())))
	return clownfish.TrapErr(func() {
		C.LUCY_Searcher_Close(self)
	})
}