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.
type CurveFlag ¶ added in v0.7.0
type CurveFlag struct {
// contains filtered or unexported fields
}
CurveFlag describes a curve and implements the flags.Marshaler and Unmarshaler interfaces so it can be used as a config struct field.
func NewCurveFlag ¶ added in v0.7.0
NewCurveFlag creates a CurveFlag with a default curve.
func (*CurveFlag) MarshalFlag ¶ added in v0.7.0
MarshalFlag satisifes the flags.Marshaler interface.
func (*CurveFlag) UnmarshalFlag ¶ added in v0.7.0
UnmarshalFlag satisifes the flags.Unmarshaler interface.