func (s *NetworkNode) SetFromDocker(port string) error {
	split := strings.Split(port, "/")
	iPort, err := strconv.ParseUint(split[0], 10, 16)
	if err != nil {
		return err
	}

	s.Port, s.Protocol = uint16(iPort), split[1]
	return nil
}
func (s *NetworkNode) SetFromDocker(port string) error {
	split := strings.Split(port, "/")
	iPort, err := strconv.ParseUint(split[0], 10, 16)
	if err != nil {
		return err
	}

	s.Port, s.Protocol = uint16(iPort), split[1]
	return nil
}
func ( s * NetworkNode ) SetFromDocker ( port string ) error { split := strings . Split ( port , " " ) iPort , err := strconv . ParseUint ( split [ 0 ] , 10 , 16 ) if err != nil { return err } s . Port , s . Protocol = uint16 ( iPort ) , split [ 1 ] return nil }
// SetFromDocker parses port as provided by Docker and extract protocol and port
// number.
SetFromDocker parses port as provided by Docker and extract protocol and port number .