func FromHostPort(nhp network.HostPort) HostPort {
	return HostPort{
		Address: Address{
			Value: nhp.Host(),
			Type:  string(nhp.AddressType()),
			Scope: string(nhp.AddressScope()),
		},
		Port: nhp.Port(),
	}
}
// FromHostPort is a convenience helper to create a parameter
// out of the network type, here for HostPort.
FromHostPort is a convenience helper to create a parameter
out of the network type, here for HostPort.
// FromHostPort is a convenience helper to create a parameter // out of the network type here for HostPort .
func FromHostPort(nhp network.HostPort) HostPort {
	return HostPort{
		Address: Address{
			Value: nhp.Host(),
			Type:  string(nhp.AddressType()),
			Scope: string(nhp.AddressScope()),
		},
		Port: nhp.Port(),
	}
}
func FromHostPort ( nhp network . HostPort ) HostPort { return HostPort { Address : Address { Value : nhp . Host ( ) , Type : string ( nhp . AddressType ( ) ) , Scope : string ( nhp . AddressScope ( ) ) , } , Port : nhp . Port ( ) , } }
FromHostPort is a convenience helper to create a parameter
out of the network type, here for HostPort.
FromHostPort is a convenience helper to create a parameter out of the network type here for HostPort .