code: func netInterfaces() ([]net.Interface, error) {
  	validIfaces := []net.Interface{}
  	ifaces, err := net.Interfaces()
  	if err != nil {
  		return nil, err
  	}
  
  	for _, iface := range ifaces {
  		if !vethRegex.MatchString(iface.Name) && stringSlice(invalidIfaces).pos(iface.Name) == -1 {
  			validIfaces = append(validIfaces, iface)
  		}
  	}
  
  	return validIfaces, nil
  }
docs: // netInterfaces returns a slice containing the local network interfaces
  // excluding lo, docker0, flannel.1 and veth interfaces.