You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: ip2location.go
    path of file: ./repos/nali/pkg/ip2location
    
    the code of the file until where you have to start completion: package ip2location

import (
	"errors"
	"fmt"
	"log"
	"net"
	"os"

	"github.com/ip2location/ip2location-go/v9"
)

type IP2Location struct {
	db *ip2location.DB
}

// NewIP2Location from database file
func NewIP2Location(filePath string) (*IP2Location, error) {
	_, err := os.Stat(filePath)
	if err != nil && os.IsNo
    
func (db IP2Location) Find(query string, params ...string) (result fmt.Stringer, err error) {
	ip := net.ParseIP(query)
	if ip == nil {
		return nil, errors.New("Query should be valid IP")
	}
	record, err := db.db.Get_all(ip.String())

	if err != nil {
		return
	}

	result = Result{
		Country: record.Country_long,
		Region:  record.Region,
		City:    record.City,
	}
	return
}