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: googleMap.go
    path of file: ./repos/goHackTools/projects/10_buildGoogleMap
    
    the code of the file until where you have to start completion: package main

import (
	"errors"
	"fmt"
	"log"
	"net"
	"os"
	"path/filepath"

	"github.com/google/gopacket"
	"github.com/google/gopacket/pcap"
	geoip2 "github.com/oschwald/geoip2-golang"
)

var (
	pcapFile string
	handle   *pcap.Handle
	err      error
)

func main() {
	// справка
	if len(os.Args) != 2 {
		fmt.Fprintf(os.Stderr, "Использование: %s PCAP_FILE\n", os.Args[0])
		os.Exit(1)
	}

	pcapFile = os.Args[1]

	
    
func main() {
	// справка
	if len(os.Args) != 2 {
		fmt.Fprintf(os.Stderr, "Использование: %s PCAP_FILE\n", os.Args[0])
		os.Exit(1)
	}

	pcapFile = os.Args[1]

	// открытие файла
	handle, err = pcap.OpenOffline(pcapFile)
	if err != nil {
		log.Fatal(err)
	}
	defer handle.Close()

	// header & footer KML
	kmlheader := `<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://www.opengis.net/kml/2.2">
<Document>`
	kmlfooter := `</Document>
</kml>`

	// data structs
	allIP := make(map[string]int)
	allKml := ""

	// просмотр всех пакетов
	packetSource := gopacket.NewPacketSource(handle, handle.LinkType())
	for packet := range packetSource.Packets() {
		// от кого кому
		if net := packet.NetworkLayer(); net != nil {
			src, dst := net.NetworkFlow().Endpoints()
			allIP[src.String()]++
			allIP[dst.String()]++
		}
	}

	// все IP
	for k := range allIP { //nolint:golint // need only IP
		kml, err := recKml(k)
		if err != nil {
			log.Fatal(err)
		}
		allKml += kml + "\n"
	}

	fmt.Println(kmlheader + "\n" + allKml + kmlfooter)
}