normalize

package
v0.0.0-...-a838072 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 19, 2019 License: Unlicense Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Address

func Address(addr, defaultPort string) string

Address returns addr with the passed default port appended if there is not already a port specified.

func Addresses

func Addresses(addrs []string, defaultPort string) []string

Addresses returns a new slice with all the passed peer addresses normalized with the given default port, and all duplicates removed.

func StringSliceAddresses

func StringSliceAddresses(a *cli.StringSlice, port string)

StringSliceAddresses normalizes a slice of addresses

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL