func ParsePort(rawPort string) (int, error) {
	if len(rawPort) == 0 {
		return 0, nil
	}
	port, err := strconv.ParseUint(rawPort, 10, 16)
	if err != nil {
		return 0, err
	}
	return int(port), nil
}
// ParsePort parses the port number string and returns an int
ParsePort parses the port number string and returns an int
// ParsePort parses the port number string and returns an int
func ParsePort(rawPort string) (int, error) {
	if len(rawPort) == 0 {
		return 0, nil
	}
	port, err := strconv.ParseUint(rawPort, 10, 16)
	if err != nil {
		return 0, err
	}
	return int(port), nil
}
func ParsePort ( rawPort string ) ( int , error ) { if len ( rawPort ) == 0 { return 0 , nil } port , err := strconv . ParseUint ( rawPort , 10 , 16 ) if err != nil { return 0 , err } return int ( port ) , nil }
ParsePort parses the port number string and returns an int
ParsePort parses the port number string and returns an int