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: client.go
    path of file: ./repos/kuma/test/framework/network/udp
    
    the code of the file until where you have to start completion: package udp

import (
	"fmt"
	"net"
	"sync"
)

type ResultMap struct {
	results map[string]uint
	mutex   sync.RWMutex
}

func NewResultMap() *ResultMap {
	return &ResultMap{
		results: map[string]uint{},
	}
}

func (m *ResultMap) Increase(key string) {
	m.mutex.Lock()
	m.results[key]++
	m.mutex.Unlock()
}

fu
    
func DialAddrAndIncreaseResultMap(address string, resultMap *ResultMap) error {
	udpAddr, err := net.ResolveUDPAddr("udp", address)
	if err != nil {
		return fmt.Errorf("cannot resolve UDPAddr from provided address (%s): %s", address, err)
	}

	socket, err := net.DialUDP("udp", nil, udpAddr)
	if err != nil {
		return fmt.Errorf("cannot dial provided address (%s): %s", address, err)
	}
	defer socket.Close()

	if _, err := socket.Write(nil); err != nil {
		return fmt.Errorf("cannot send hello message: %s", err)
	}

	buf := make([]byte, 1024)
	n, err := socket.Read(buf)
	if err != nil {
		return fmt.Errorf("cannot read replied message: %s", err)
	}

	resultMap.Increase(string(buf[:n]))

	return nil
}