Documentation ¶
Index ¶
- func Address(addr, defaultPort string) string
- func Addresses(addrs []string, defaultPort string) []string
- func Check(err error) bool
- func Debug(a ...interface{})
- func Debugc(fn func() string)
- func Debugf(format string, a ...interface{})
- func Debugs(a interface{})
- func Error(a ...interface{})
- func Errorc(fn func() string)
- func Errorf(format string, a ...interface{})
- func Errors(a interface{})
- func Fatal(a ...interface{})
- func Fatalc(fn func() string)
- func Fatalf(format string, a ...interface{})
- func Fatals(a interface{})
- func Info(a ...interface{})
- func Infoc(fn func() string)
- func Infof(format string, a ...interface{})
- func Infos(a interface{})
- func StringSliceAddresses(a *cli.StringSlice, port string)
- func Trace(a ...interface{})
- func Tracec(fn func() string)
- func Tracef(format string, a ...interface{})
- func Traces(a interface{})
- func Warn(a ...interface{})
- func Warnc(fn func() string)
- func Warnf(format string, a ...interface{})
- func Warns(a interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Address ¶
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 StringSliceAddresses ¶
func StringSliceAddresses(a *cli.StringSlice, port string)
StringSliceAddresses normalizes a slice of addresses
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.