Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FileExists ¶
FileExists reports whether the named file or directory exists.
func NormalizeAddress ¶
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.
Types ¶
type AmountFlag ¶ added in v0.1.0
AmountFlag embeds a dcrutil.Amount and implements the flags.Marshaler and Unmarshaler interfaces so it can be used as a config struct field.
func NewAmountFlag ¶ added in v0.1.3
func NewAmountFlag(defaultValue dcrutil.Amount) *AmountFlag
NewAmountFlag creates an AmountFlag with a default dcrutil.Amount.
func (*AmountFlag) MarshalFlag ¶ added in v0.1.0
func (a *AmountFlag) MarshalFlag() (string, error)
MarshalFlag satisifes the flags.Marshaler interface.
func (*AmountFlag) UnmarshalFlag ¶ added in v0.1.0
func (a *AmountFlag) UnmarshalFlag(value string) error
UnmarshalFlag satisifes the flags.Unmarshaler interface.
Click to show internal directories.
Click to hide internal directories.