FileExists reports whether the named file or directory exists.
NormalizeAddress returns the normalized form of the address, adding a default port if necessary. An error is returned if the address, even without a port, is not valid.
NormalizeAddresses returns a new slice with all the passed peer addresses normalized with the given default port, and all duplicates removed.
AmountFlag embeds a bchutil.Amount and implements the flags.Marshaler and Unmarshaler interfaces so it can be used as a config struct field.
NewAmountFlag creates an AmountFlag with a default bchutil.Amount.
MarshalFlag satisifes the flags.Marshaler interface.
UnmarshalFlag satisifes the flags.Unmarshaler interface.
ExplicitString is a string value implementing the flags.Marshaler and flags.Unmarshaler interfaces so it may be used as a config struct field. It records whether the value was explicitly set by the flags package. This is useful when behavior must be modified depending on whether a flag was set by the user or left as a default. Without recording this, it would be impossible to determine whether flag with a default value was unmodified or explicitly set to the default.
NewExplicitString creates a string flag with the provided default value.
ExplicitlySet returns whether the flag was explicitly set through the flags.Unmarshaler interface.
MarshalFlag implements the flags.Marshaler interface.
UnmarshalFlag implements the flags.Unmarshaler interface.