Exemple #1
0
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
}
Exemple #2
0
//return a string description of the database
func (self *GeoIP) Info() string {
	return C.GoString(C.GeoIP_database_info(self.GeoIP))
}