code: func validateInterface(iface *net.Interface) error {
  	if !ifaceNameRegexp.MatchString(iface.Name) {
  		return fmt.Errorf("Invalid interface name %q", iface.Name)
  	}
  	return nil
  }
docs: // validateInterface validates the name of a network interface.