normalize

package
v0.0.14 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2021 License: Unlicense, ISC Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var F, E, W, I, D, T log.LevelPrinter = log.GetLogPrinterSet(subsystem)

Functions

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 RemoveDuplicateAddresses

func RemoveDuplicateAddresses(addrs []string) (result []string)

RemoveDuplicateAddresses returns a new slice with all duplicate entries in addrs removed.

func StringSliceAddresses

func StringSliceAddresses(a []string, 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