Documentation ¶
Index ¶
- func Address(addr, defaultPort string, userOnly bool) (a string, e error)
- func Addresses(addrs []string, defaultPort string, userOnly bool) (a []string, e error)
- func ClampPortRange(port, defaultPort string, min, max int) string
- func RemoveDuplicateAddresses(addrs []string) (result []string)
- func ResolvePath(input string, abs bool) (cleaned string, e error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Address ¶ added in v0.1.21
Address returns addr with the passed default port appended if there is not already a port specified.
func Addresses ¶
Addresses returns a new slice with all the passed peer addresses normalized with the given default port, and all duplicates removed.
func ClampPortRange ¶ added in v0.1.22
func RemoveDuplicateAddresses ¶
RemoveDuplicateAddresses returns a new slice with all duplicate entries in addrs removed.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.