func (info *Info) Ports() []int {
	ports := set.NewInts()
	for _, addr := range info.Addrs {
		hp, err := network.ParseMachineHostPort(addr)
		if err != nil {
			// Addresses have already been validated.
			panic(err)
		}
		ports.Add(hp.Port())
	}
	return ports.Values()
}
// Ports returns the unique ports for the api addresses.
Ports returns the unique ports for the api addresses.
// Ports returns the unique ports for the api addresses .
func (info *Info) Ports() []int {
	ports := set.NewInts()
	for _, addr := range info.Addrs {
		hp, err := network.ParseMachineHostPort(addr)
		if err != nil {
			panic(err)
		}
		ports.Add(hp.Port())
	}
	return ports.Values()
}
func ( info * Info ) Ports ( ) [ ] int { ports := set . NewInts ( ) for _ , addr := range info . Addrs { hp , err := network . ParseMachineHostPort ( addr ) if err != nil { panic ( err ) } ports . Add ( hp . Port ( ) ) } return ports . Values ( ) }
Ports returns the unique ports for the api addresses.
Ports returns the unique ports for the api addresses .
// Addresses have already been validated.