func (gi *GeoIP) DatabaseInfo() string { // this call returns a newly allocated CString info := C.GeoIP_database_info(gi.gi) defer C.free(unsafe.Pointer(info)) goinfo := C.GoString(info) return goinfo }
//return a string description of the database func (self *GeoIP) Info() string { return C.GoString(C.GeoIP_database_info(self.GeoIP)) }