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: template_helper.go
    path of file: ./repos/kubernetes-ingress/internal/configs/version2
    
    the code of the file until where you have to start completion: package version2

import (
	"strconv"
	"strings"
	"text/template"

	"github.com/nginxinc/kubernetes-ingress/internal/configs/commonhelpers"
)

type protocol int

const (
	http protocol = iota
	https
)

type
    
func buildDefaultListenerDirectives(listenerType protocol, s Server) string {
	var directives string
	port := getDefaultPort(listenerType)

	directives += buildListenDirective(port, s.ProxyProtocol, ipv4)

	if !s.DisableIPV6 {
		directives += spacing
		directives += buildListenDirective(port, s.ProxyProtocol, ipv6)
	}

	return directives
}