func (s InterfaceInfos) GetByName(name string) InterfaceInfos {
	var res InterfaceInfos
	for _, dev := range s {
		if dev.InterfaceName == name {
			res = append(res, dev)
		}
	}
	return res
}
// GetByName returns a new collection containing
// any interfaces with the input device name.
GetByName returns a new collection containing
any interfaces with the input device name.
// GetByName returns a new collection containing // any interfaces with the input device name .
func (s InterfaceInfos) GetByName(name string) InterfaceInfos {
	var res InterfaceInfos
	for _, dev := range s {
		if dev.InterfaceName == name {
			res = append(res, dev)
		}
	}
	return res
}
func ( s InterfaceInfos ) GetByName ( name string ) InterfaceInfos { var res InterfaceInfos for _ , dev := range s { if dev . InterfaceName == name { res = append ( res , dev ) } } return res }
GetByName returns a new collection containing
any interfaces with the input device name.
GetByName returns a new collection containing any interfaces with the input device name .