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: interfaces.go
    path of file: ./repos/sliver/vendor/github.com/insomniacslk/dhcp/interfaces
    
    the code of the file until where you have to start completion: package interfaces

import "net"

// InterfaceMatcher is a function type used to match the interfaces we want. See
// GetInterfacesFunc below for
    
func GetInterfacesFunc(matcher InterfaceMatcher) ([]net.Interface, error) {
	ifaces, err := interfaceGetter()
	if err != nil {
		return nil, err
	}
	ret := make([]net.Interface, 0)
	for _, iface := range ifaces {
		if matcher(iface) {
			ret = append(ret, iface)
		}
	}
	return ret, nil
}